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: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@postgresql.org
Subject: Re: What is the meaning of pg_restore output?
Date: Sat, 17 Mar 2018 09:20:48 -0700
Message-ID: <a856ad02-38c1-1a9d-a655-1536d0627aad@aklaver.com> (raw)
In-Reply-To: <CAL93h0EC5bVf3nCp9OJCMo3d8Z9n7VTU--JfFoH1Nj3v6a7b5g@mail.gmail.com>
References: <CAL93h0E2EG808jR1AFWgS05UibG8yTics7=_ikGBDUisXno2=A@mail.gmail.com>
	<e459045f-72f9-fe17-7407-8ea0de14c7e8@aklaver.com>
	<CAL93h0H2kx8Nhp7FwsKkYGR16KcCokLTZrrEqQerh4mFRBo5Wg@mail.gmail.com>
	<f0fff928-ef75-d963-5dd7-ec1b8e174753@aklaver.com>
	<29718.1520544753@sss.pgh.pa.us>
	<CAL93h0EC5bVf3nCp9OJCMo3d8Z9n7VTU--JfFoH1Nj3v6a7b5g@mail.gmail.com>

On 03/17/2018 07:30 AM, Alexandru Lazarev wrote:
> Hi All, Thanks for your replies.
> What about "item" key-word - is it appearing only when -j > 1?
> 
> 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)
> 
> 
> 2. Are they (output phrases) documented somewhere?

Grepping source in src/bin/pg_dump/:

https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/bin/pg_dump/pg_backup_archiver.c;h=...

if (do_now)
        {
              /* OK, restore the item and update its dependencies */
              ahlog(AH, 1, "processing item %d %s %s\n",
                    next_work_item->dumpId,
                    next_work_item->desc, next_work_item->tag);

Which is in section with this comment:

/*
  * Main engine for parallel restore.
  *
  * Parallel restore is done in three phases.  In this first phase,
  * we'll process all SECTION_PRE_DATA TOC entries that are allowed to be
  * processed in the RESTORE_PASS_MAIN pass.  (In practice, that's all
  * PRE_DATA items other than ACLs.)  Entries we can't process now are
  * added to the pending_list for later phases to deal with.
  */


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (7+ messages)

Message-ID: <a856ad02-38c1-1a9d-a655-1536d0627aad@aklaver.com>
Permalink:  ../a856ad02-38c1-1a9d-a655-1536d0627aad@aklaver.com/
Also on:    postgresql.org/message-id/a856ad02-38c1-1a9d-a655-1536d0627aad@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, tgl@sss.pgh.pa.us
  Subject: Re: What is the meaning of pg_restore output?
  In-Reply-To: <a856ad02-38c1-1a9d-a655-1536d0627aad@aklaver.com>
  References: <CAL93h0E2EG808jR1AFWgS05UibG8yTics7=_ikGBDUisXno2=A@mail.gmail.com> <e459045f-72f9-fe17-7407-8ea0de14c7e8@aklaver.com> <CAL93h0H2kx8Nhp7FwsKkYGR16KcCokLTZrrEqQerh4mFRBo5Wg@mail.gmail.com> <f0fff928-ef75-d963-5dd7-ec1b8e174753@aklaver.com> <29718.1520544753@sss.pgh.pa.us> <CAL93h0EC5bVf3nCp9OJCMo3d8Z9n7VTU--JfFoH1Nj3v6a7b5g@mail.gmail.com> <a856ad02-38c1-1a9d-a655-1536d0627aad@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