pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: skoposov@ed.ac.uk
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16951: pg_restore segfaults on custom format piped from a different version of PG
Date: Wed, 31 Mar 2021 17:27:11 -0400
Message-ID: <3331060.1617226031@sss.pgh.pa.us> (raw)
In-Reply-To: <16951-a4dd68cf0de23048@postgresql.org>
References: <16951-a4dd68cf0de23048@postgresql.org>

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





view thread (9+ messages)  latest in thread

Message-ID: <3331060.1617226031@sss.pgh.pa.us>
Permalink:  ../3331060.1617226031@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3331060.1617226031@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, skoposov@ed.ac.uk, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16951: pg_restore segfaults on custom format piped from a different version of PG
  In-Reply-To: <3331060.1617226031@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox