pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Alexandru Lazarev <alexandru.lazarev@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: What is the meaning of pg_restore output?
Date: Thu, 8 Mar 2018 07:30:03 -0800
Message-ID: <e459045f-72f9-fe17-7407-8ea0de14c7e8@aklaver.com> (raw)
In-Reply-To: <CAL93h0E2EG808jR1AFWgS05UibG8yTics7=_ikGBDUisXno2=A@mail.gmail.com>
References: <CAL93h0E2EG808jR1AFWgS05UibG8yTics7=_ikGBDUisXno2=A@mail.gmail.com>

On 03/08/2018 01:49 AM, Alexandru Lazarev wrote:
> Hi PG community,
> I have questions about pg_restore output.
> 
> At some point of time in pg_restore output was such phrase 
> "*/pg_restore: setting owner and privileges for <RELATION_NAME>/*", then 
> it disappeared, it seems, when upgraded from PG 9.6.2 to 9.6.6
> Other phrases "pg_restore: processing /*item */3615 DEFAULT id
> pg_restore: creating DEFAULT "public.id <http://public.id>";
> are observed if pg_restore is executed with flag -j N (where N > 1)
> and aren't present when -j 1 (or without -j)
> 
> So main questions are:
> 1. What is the meaning of this phrases?
> 2. Are they documented somewhere?
> 3. Is it possible that output change from version to version?

I do not see any change in the release notes:
https://www.postgresql.org/docs/9.6/static/release.html

I would look at what at client_min_messages (enum) in:
https://www.postgresql.org/docs/9.6/static/runtime-config-logging.html

It would also helpful to see the complete pg_dump and pg_restore 
commands you are working with.

> 
> Why I am asking?
> I saw a script which does pg_restore and grep some of this phrases as 
> SUCCESS indicator that pg_restore passed OK (+ something like grep -iv 
> "error").
> script doesn't use pg_restore exit code because, as I understood from 
> the authors, in the past were situations that pg_restore returned 0 code 
> but didn't restore of db.
> 
> Any answers, hints are welcome :).
> Thanks
> 
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&...; 
> 	Virus-free. www.avast.com 
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&...; 
> 
> 
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (7+ messages)  latest in thread

Message-ID: <e459045f-72f9-fe17-7407-8ea0de14c7e8@aklaver.com>
Permalink:  ../e459045f-72f9-fe17-7407-8ea0de14c7e8@aklaver.com/
Also on:    postgresql.org/message-id/e459045f-72f9-fe17-7407-8ea0de14c7e8@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, alexandru.lazarev@gmail.com
  Subject: Re: What is the meaning of pg_restore output?
  In-Reply-To: <e459045f-72f9-fe17-7407-8ea0de14c7e8@aklaver.com>
  References: <CAL93h0E2EG808jR1AFWgS05UibG8yTics7=_ikGBDUisXno2=A@mail.gmail.com> <e459045f-72f9-fe17-7407-8ea0de14c7e8@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