Re: BUG #16951: pg_restore segfaults on custom format piped from a different version of PG
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: skoposov@ed.ac.uk
Cc: pgsql-bugs@lists.postgresql.org
Date: 2021-03-31T21:27:11Z
Lists: pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes: > I have a reproducible case of segfaulting pg_restore when trying to restore > from pg_dump of a different version. Specifically at least pg_restore from > 10 crashes from pg_dump 12. When I try that I get pg_restore: [archiver] unsupported version (1.14) in file header and that test is done first thing in ReadHead(), before the place you identify. I suspect you are dealing with a corrupt archive file, not a version mismatch. regards, tom lane
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix pg_restore's misdesigned code for detecting archive file format.
- ec03f2df17a8 14.0 landed
- 84c5e0dd2e73 12.7 landed
- 35421a470de1 13.3 landed
- 2c9b857afbcf 9.6.22 landed
- 25fe401d5350 11.12 landed
- 1b6961c8fec8 10.17 landed