postgresql/src/backend
Heikki Linnakangas c5db07d34d Remove arbitrary 10MB limit on two-phase state file size. It's not that hard
to go beoynd 10MB, as demonstrated by Gavin Sharry's example of dropping a
schema with ~25000 objects. The really bogus thing about the limit was that
it was enforced when a state file file was read in, not when it was written,
so you would end up with a prepared transaction that you can't commit or
abort, and the only recourse was to shut down the server and remove the file
by hand.

Raise the limit to MaxAllocSize, and enforce it also when a state file is
written. We could've removed the limit altogether, but reading in a file
larger than MaxAllocSize would fail anyway because we read it into a
palloc'd buffer.

Backpatch down to 8.1, where 2PC and this issue was introduced.
2008-05-19 18:17:03 +00:00
..
access Remove arbitrary 10MB limit on two-phase state file size. It's not that hard 2008-05-19 18:17:03 +00:00
bootstrap On systems that have setsid(2) (which should be just about everything except 2006-11-21 20:59:53 +00:00
catalog Put a CHECK_FOR_INTERRUPTS call into the loops that try to find a unique new 2008-02-20 17:44:20 +00:00
commands Fix an ancient oversight in change_varattnos_of_a_node: it neglected to update 2008-05-09 22:37:41 +00:00
executor Fix several memory leaks when rescanning SRFs. Arrange for an SRF's 2008-02-29 02:49:47 +00:00
lib Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
libpq On win32, don't use SO_REUSEADDR for TCP sockets. 2007-06-04 11:59:40 +00:00
main Fix erroneous implementation of -s in postmaster.c (the switch doesn't take 2007-01-04 00:58:01 +00:00
nodes Rewrite make_outerjoininfo's construction of min_lefthand and min_righthand 2007-08-31 01:44:14 +00:00
optimizer Fix subselect.c to avoid assuming that a SubLink's testexpr references each 2008-01-17 20:35:34 +00:00
parser Defend against JOINs having more than 32K columns altogether. We cannot 2008-04-05 01:58:35 +00:00
po Translation updates 2008-03-14 04:51:31 +00:00
port Repair two places where SIGTERM exit could leave shared memory state 2008-04-17 00:00:01 +00:00
postmaster Backpatch my fix of rev 1.48 to avoid a division-by-zero error in the 2008-01-17 23:47:04 +00:00
regex Fix assorted security-grade bugs in the regex engine. All of these problems 2008-01-03 20:48:49 +00:00
rewrite Fix markQueryForLocking() to work correctly in the presence of nested views. 2007-03-01 18:50:36 +00:00
storage Repair two places where SIGTERM exit could leave shared memory state 2008-04-17 00:00:01 +00:00
tcop Fix portal management code to support non-default command completion tags for 2007-02-18 19:49:30 +00:00
utils The 8.2 patch that added support for an alias on the target table of 2008-05-03 23:19:33 +00:00
Makefile On Windows, we know the backend stack size limit because we have to 2006-10-08 17:15:34 +00:00
nls.mk Add _ to gettext triggers. Must have been forgotten here when it was introduced. 2005-10-04 11:14:03 +00:00