diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-29 21:38:18 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-29 21:38:18 +0000 |
commit | 037709e0b3da1f7ac3d794c60216365cf3e23de1 (patch) | |
tree | c8abf9ebec33a29847d6ed66d0108a487a41d586 /src/backend/access | |
parent | 8aec77fb9fbbe78bfb72b6003f9b54d3cadeccd1 (diff) | |
download | postgresql-037709e0b3da1f7ac3d794c60216365cf3e23de1.tar.gz postgresql-037709e0b3da1f7ac3d794c60216365cf3e23de1.zip |
Reduce default value of max_prepared_transactions from 50 to 5. This
saves nearly 700kB in the default shared memory segment size, which seems
worthwhile, and it is a feature that many users won't use anyway. Per
Heikki's argument, there is no point in a compromise value --- those who
are using 2PC at all will probably want it at least equal to max_connections.
But we can't set it to zero by default without breaking the prepared_xacts
regression test.
Diffstat (limited to 'src/backend/access')
-rw-r--r-- | src/backend/access/transam/twophase.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/transam/twophase.c b/src/backend/access/transam/twophase.c index f65904f0376..ec548d44357 100644 --- a/src/backend/access/transam/twophase.c +++ b/src/backend/access/transam/twophase.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.10 2005/08/20 23:26:10 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.11 2005/08/29 21:38:18 tgl Exp $ * * NOTES * Each global transaction is associated with a global transaction @@ -64,7 +64,7 @@ #define TWOPHASE_DIR "pg_twophase" /* GUC variable, can't be changed after startup */ -int max_prepared_xacts = 50; +int max_prepared_xacts = 5; /* * This struct describes one global transaction that is in prepared state |