postgresql/src/backend/access
Tom Lane 8d4f2ecd41 Change the default value of max_prepared_transactions to zero, and add
documentation warnings against setting it nonzero unless active use of
prepared transactions is intended and a suitable transaction manager has been
installed.  This should help to prevent the type of scenario we've seen
several times now where a prepared transaction is forgotten and eventually
causes severe maintenance problems (or even anti-wraparound shutdown).

The only real reason we had the default be nonzero in the first place was to
support regression testing of the feature.  To still be able to do that,
tweak pg_regress to force a nonzero value during "make check".  Since we
cannot force a nonzero value in "make installcheck", add a variant regression
test "expected" file that shows the results that will be obtained when
max_prepared_transactions is zero.

Also, extend the HINT messages for transaction wraparound warnings to mention
the possibility that old prepared transactions are causing the problem.

All per today's discussion.
2009-04-23 00:23:46 +00:00
..
common Remove the recently added node types ReloptElem and OptionDefElem in favor 2009-04-04 21:12:31 +00:00
gin Fix infinite loop while checking of partial match in pending list. 2009-04-05 11:32:01 +00:00
gist Fix 'all at one page bug' in picksplit method of R-tree emulation. Add defense 2009-04-06 14:27:27 +00:00
hash Implement "fastupdate" support for GIN indexes, in which we try to accumulate 2009-03-24 20:17:18 +00:00
heap Add a new option to RestoreBkpBlocks() to indicate if a cleanup lock should 2009-01-20 18:59:37 +00:00
index Implement "fastupdate" support for GIN indexes, in which we try to accumulate 2009-03-24 20:17:18 +00:00
nbtree Implement "fastupdate" support for GIN indexes, in which we try to accumulate 2009-03-24 20:17:18 +00:00
transam Change the default value of max_prepared_transactions to zero, and add 2009-04-23 00:23:46 +00:00
Makefile Refactor backend makefiles to remove lots of duplicate code 2008-02-19 10:30:09 +00:00