postgresql/src
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
..
backend Remove arbitrary 10MB limit on two-phase state file size. It's not that hard 2008-05-19 18:17:03 +00:00
bin Translation updates 2008-03-14 04:51:31 +00:00
include Fix using too many LWLocks bug, reported by Craig Ringer 2008-04-22 17:53:41 +00:00
interfaces Add more dependencies from libpgport required by 2008-05-05 19:31:43 +00:00
makefiles Add $(CFLAGS) to the simplified build rule for .so libraries on Darwin. 2006-11-28 05:45:43 +00:00
pl Work around for perl 5.10 bug - fix due to perl hacker Simon Cozens. 2008-01-22 20:19:53 +00:00
port A quick try at un-breaking the Cygwin build. Whether it needs the 2008-04-12 00:00:08 +00:00
template Make --with-ldap build on Unixware, per Olivier Prenant. 2006-12-14 21:50:07 +00:00
test Fix ALTER TABLE ADD COLUMN ... PRIMARY KEY so that the new column is correctly 2008-04-24 20:18:07 +00:00
timezone Update to tzdata 2008a distribution (Chilean DST law change). 2008-03-13 19:21:56 +00:00
tools Avoid using unnecessary pgwin32_safestat in libpq. 2008-04-16 14:24:38 +00:00
tutorial Fix some misuses of strncat(). 2006-09-27 16:19:42 +00:00
bcc32.mak Fix bcc32.mak to create and remove pg_config_os.h properly. Apparently 2006-10-06 18:53:53 +00:00
DEVELOPERS Testing commit stuff 2006-07-10 15:50:02 +00:00
Makefile Remove dllinit.c; it was only needed for long-obsolete Cygwin versions, 2006-06-22 23:50:35 +00:00
Makefile.global.in On Windows, we know the backend stack size limit because we have to 2006-10-08 17:15:34 +00:00
Makefile.shlib Fix shared library creation to work properly on AIX. Albe Laurenz 2006-09-19 15:36:08 +00:00
nls-global.mk When merging PO files, take into consideration translations in other PO 2006-04-05 13:40:15 +00:00
win32.mak Fix win32.mak for config cleanup. 2006-08-08 22:44:05 +00:00