Fix pg_upgrade, broken by the xlogid/segno -> 64-bit int refactoring.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Fix pg_upgrade, broken by the xlogid/segno -> 64-bit int refactoring. The xlogid + segno representation of a particular WAL segment doesn't make much sense in pg_resetxlog anymore, now that we don't use that anywhere else. Use the WAL filename instead, since that's a convenient way to name a particular WAL segment. I did this partially for pg_resetxlog in the original xlogid/segno -> uint64 patch, but I neglected pg_upgrade and the docs. This should now be more complete.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_upgrade/controldata.c | modified | +43 −9 |
| contrib/pg_upgrade/pg_upgrade.c | modified | +2 −4 |
| contrib/pg_upgrade/pg_upgrade.h | modified | +1 −2 |
| doc/src/sgml/ref/pg_resetxlog.sgml | modified | +1 −6 |
| src/bin/pg_resetxlog/pg_resetxlog.c | modified | +4 −23 |