postgresql/src/backend
Heikki Linnakangas 50ff07d5b1 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:16:26 +00:00
..
access Remove arbitrary 10MB limit on two-phase state file size. It's not that hard 2008-05-19 18:16:26 +00:00
bootstrap Restructure some header files a bit, in particular heapam.h, by removing some 2008-05-12 00:00:54 +00:00
catalog Add a RESTART (without parameter) option to ALTER SEQUENCE, allowing a 2008-05-16 23:36:05 +00:00
commands Coercion sanity check in ri_HashCompareOp failed to allow for enums, as per 2008-05-19 04:14:24 +00:00
executor Add support for tracking call counts and elapsed runtime for user-defined 2008-05-15 00:17:41 +00:00
lib Refactor backend makefiles to remove lots of duplicate code 2008-02-19 10:30:09 +00:00
libpq Use error message wordings for permissions checks on .pgpass and SSL private 2008-03-31 02:43:14 +00:00
main Refactor backend makefiles to remove lots of duplicate code 2008-02-19 10:30:09 +00:00
nodes Add a RESTART (without parameter) option to ALTER SEQUENCE, allowing a 2008-05-16 23:36:05 +00:00
optimizer Extend GIN to support partial-match searches, and extend tsquery to support 2008-05-16 16:31:02 +00:00
parser Add a RESTART (without parameter) option to ALTER SEQUENCE, allowing a 2008-05-16 23:36:05 +00:00
po Translation updates 2008-01-31 18:04:52 +00:00
port Add $PostgreSQL$ markers to a lot of files that were missing them. 2008-05-17 01:28:26 +00:00
postmaster Add support for tracking call counts and elapsed runtime for user-defined 2008-05-15 00:17:41 +00:00
regex Refactor backend makefiles to remove lots of duplicate code 2008-02-19 10:30:09 +00:00
rewrite Restructure some header files a bit, in particular heapam.h, by removing some 2008-05-12 00:00:54 +00:00
snowball Implement a few changes to how shared libraries and dynamically loadable 2008-04-07 14:15:58 +00:00
storage This is the patch replace offnum++ by OffsetNumberNext, to be 2008-05-13 15:44:08 +00:00
tcop Add support for tracking call counts and elapsed runtime for user-defined 2008-05-15 00:17:41 +00:00
tsearch Extend GIN to support partial-match searches, and extend tsquery to support 2008-05-16 16:31:02 +00:00
utils Make to_char()'s localized month/day names depend on LC_TIME, not LC_MESSAGES. 2008-05-19 18:08:16 +00:00
Makefile Enable probes to work with Mac OS X Leopard and other OSes that will 2008-03-17 19:44:41 +00:00
common.mk We need to rebuild objfiles.txt when one of the subdirectories' objfiles.txt 2008-03-17 18:24:56 +00:00
nls.mk Add a new ereport auxiliary function errdetail_log(), which works the same as 2008-03-24 18:08:47 +00:00