Re: could not truncate directory "pg_serial": apparent wraparound

Kevin Grittner <kevin.grittner@wicourts.gov>

From: "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
To: "Heikki Linnakangas" <heikki.linnakangas@enterprisedb.com>
Cc: <pgsql-hackers@postgresql.org>
Date: 2011-06-09T19:32:29Z
Lists: pgsql-hackers
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> wrote:
 
> I also fixed the broken warning logic. Please double-check that
> too when you get a chance.
 
As usual, I like your code better than mine.  I don't think my code
was broken in the sense that it would generate different results
than yours, but it was too clever by half, and depended on knowledge
that a TransactionId is 32 bits.  Yours is more tolerant of changes
to implementation details, and much easier to read and understand.
 
While I'm *pretty sure* my code for this worked, I am *positive*
that yours does.  :-)
 
Thanks again.
 
-Kevin