pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mohamed Wael Khobalatte <mkhobalatte@grubhub.com>
Cc: pgsql-general@postgresql.org
Subject: Re: pg_restore V12 fails consistently against piped pg_dumps
Date: Thu, 07 May 2020 02:35:06 -0400
Message-ID: <4717.1588833306@sss.pgh.pa.us> (raw)
In-Reply-To: <CABZeWdwos=AzBdwuXv2DW_ocMw=bref97voChRhEf80qOk+gdg@mail.gmail.com>
References: <CABZeWdwos=AzBdwuXv2DW_ocMw=bref97voChRhEf80qOk+gdg@mail.gmail.com>

Mohamed Wael Khobalatte <mkhobalatte@grubhub.com> writes:
> When doing a parallel pg_restore (v12) against a dump created through a
> pipe using an earlier version (11 all the way to 9.6), it fails with the
> known error of not finding data offsets. I understand the reasons for it
> (potential inability to seek), which is documented in pg_restore.

> What I don't understand is why the same `pg_restore -j` worked in earlier
> versions (say running pg_restore_v11 against the same dumps). Has anything
> changed in terms of ordering? I am actually quite curious what led to this
> finally breaking consistently.

Without a concrete example it's hard to say, but maybe the issue is that
v12 is more aggressive about parallelizing restores --- see 548e50976.

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <4717.1588833306@sss.pgh.pa.us>
Permalink:  ../4717.1588833306@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4717.1588833306@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mkhobalatte@grubhub.com
  Subject: Re: pg_restore V12 fails consistently against piped pg_dumps
  In-Reply-To: <4717.1588833306@sss.pgh.pa.us>
  References: <CABZeWdwos=AzBdwuXv2DW_ocMw=bref97voChRhEf80qOk+gdg@mail.gmail.com> <4717.1588833306@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