pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Laurenz Albe <laurenz.albe@cybertec.at>
To: Mohamed Wael Khobalatte <mkhobalatte@grubhub.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@postgresql.org
Subject: Re: pg_restore V12 fails consistently against piped pg_dumps
Date: Fri, 8 May 2020 07:59:25 -0700
Message-ID: <7233c1c3-d84d-e07f-994c-83bf6176c367@aklaver.com> (raw)
In-Reply-To: <9229bd9315ae87f8184872ec13d9d988bde95be1.camel@cybertec.at>
References: <CABZeWdwos=AzBdwuXv2DW_ocMw=bref97voChRhEf80qOk+gdg@mail.gmail.com>
	<4717.1588833306@sss.pgh.pa.us>
	<CABZeWdxxqYiNtkPeZnWfBZ2L_oQvni3qkyjcq8LaL-Om46UA2Q@mail.gmail.com>
	<9229bd9315ae87f8184872ec13d9d988bde95be1.camel@cybertec.at>

On 5/7/20 11:47 PM, Laurenz Albe wrote:
> On Thu, 2020-05-07 at 11:04 -0400, Mohamed Wael Khobalatte wrote:
>> Thanks Tom, I will review those changes tonight. In the meantime, to
>> reproduce, I run the following:
>>
>> - createdb test
>> - create some tables, I used a simple loop to create 10 empty ones.
>> - pg_dump -v -Fc test | tee test.dump > /dev/null (so it's through a
>> pipe, same as if the file is streamed through curl which was the
>> original case)
>> - pg_restore -j4 --verbose --clean --no-acl --no-owner -d test test.dump
>>
>> That should fail consistently. pg_restore_12 and pg_dump_12. Same
>> passes in if I run in earlier versions.
> 
> I just tried that and didn't encounter any errors.

I did:

pg_dump -d production -U postgres -Fc |tee test.dump > /dev/null

pg_restore -j4 -d production_test -U postgres test.dump

pg_restore: error: could not find block ID 4804 in archive -- possibly 
due to out-of-order restore request, which cannot be handled due to lack 
of data offsets in archive
pg_restore: error: could not find block ID 4806 in archive -- possibly 
due to out-of-order restore request, which cannot be handled due to lack 
of data offsets in archive
pg_restore: error: a worker process died unexpectedly


Whereas a restore without -j4 succeeded.

> 
> Please come up with a more complete example.
> 
> Are you OS user "postgres" when you run that?

> 
> Yours,
> Laurenz Albe
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (6+ messages)  latest in thread

Message-ID: <7233c1c3-d84d-e07f-994c-83bf6176c367@aklaver.com>
Permalink:  ../7233c1c3-d84d-e07f-994c-83bf6176c367@aklaver.com/
Also on:    postgresql.org/message-id/7233c1c3-d84d-e07f-994c-83bf6176c367@aklaver.com

 · 

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: adrian.klaver@aklaver.com, laurenz.albe@cybertec.at, mkhobalatte@grubhub.com, tgl@sss.pgh.pa.us
  Subject: Re: pg_restore V12 fails consistently against piped pg_dumps
  In-Reply-To: <7233c1c3-d84d-e07f-994c-83bf6176c367@aklaver.com>
  References: <CABZeWdwos=AzBdwuXv2DW_ocMw=bref97voChRhEf80qOk+gdg@mail.gmail.com> <4717.1588833306@sss.pgh.pa.us> <CABZeWdxxqYiNtkPeZnWfBZ2L_oQvni3qkyjcq8LaL-Om46UA2Q@mail.gmail.com> <9229bd9315ae87f8184872ec13d9d988bde95be1.camel@cybertec.at> <7233c1c3-d84d-e07f-994c-83bf6176c367@aklaver.com>

* 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