Arbitary file size limit in twophase.c

From: Gavin Sherry <swm(at)alcove(dot)com(dot)au>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Arbitary file size limit in twophase.c
Date: 2008-05-13 10:25:05
Message-ID: 20080513102505.GC13136@europa.idg.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2008-05-13 12:00:29 Re: odd output in restore mode
Previous Message KaiGai Kohei 2008-05-13 09:46:56 Re: [0/4] Proposal of SE-PostgreSQL patches