Arbitary file size limit in twophase.c - Mailing list pgsql-hackers

From Gavin Sherry
Subject Arbitary file size limit in twophase.c
Date
Msg-id 20080513102505.GC13136@europa.idg.com.au
Whole thread Raw
Responses Re: Arbitary file size limit in twophase.c  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
There's an apparently arbitary limit of 10,000,000 bytes in twophase.c
on the size of a two phase commit file. I can't see why this limit
exists.

I hit this limit by creating a prepared transaction which included
dropping a schema with about 25,000 objects in it and then trying to
commit it. The result is that ReadTwoPhaseFile() returns NULL and
FinishPreparedTransaction() says it detected a corrupted file.

Thoughts?

Thanks,

Gavin


pgsql-hackers by date:

Previous
From: KaiGai Kohei
Date:
Subject: Re: [0/4] Proposal of SE-PostgreSQL patches
Next
From: Andrew Dunstan
Date:
Subject: Re: odd output in restore mode