From: Ron Johnson <ron.l.johnson@cox.net>
To: pgsql-general@postgresql.org
Subject: Re: pg_restore load data
Date: Thu, 16 Nov 2017 15:33:03 -0600
Message-ID: <ae75ba0c-6222-6d2d-dbb5-0274e2ea0385@cox.net> (raw)
In-Reply-To: <alFo1w0081DF5NZ01lFqJd>
References: <8f75fd9b-8ba9-8bfb-cac6-3c0f33d2b760@cox.net>
<alFo1w0081DF5NZ01lFqJd>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
On 11/16/2017 03:13 PM, bricklen wrote:
>
> On Thu, Nov 16, 2017 at 1:07 PM, Ron Johnson <ron.l.johnson@cox.net
> <mailto:ron.l.johnson@cox.net>> wrote:
>
> v9.2.7 (Yes, I know, it's old. Nothing I can do about it.)
>
> During a "whole database" restore using pg_restore of a custom dump,
> when is the data actually loaded? I've looked in the list output and
> don't see any "load" statements.
>
>
> Look for COPY lines, that's how the data is restored.
$ pg_restore -l CDSHA01.dump > CDSHA01.txt
$ grep --color -i copy CDSHA01.txt
$ echo $?
1
There are lots of "restoring data", though. I should have thought to grep
for that.
One thing that puzzles me is how fast the tables (even large ones) loaded
compared to how slow the pg_dump -Fc was. Granted, I'm running -j4 but
still, these were some really large, poorly compressible tables (the dump
file was about as big as du -mc data/base).
--
World Peace Through Nuclear Pacification
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: ron.l.johnson@cox.net
Subject: Re: pg_restore load data
In-Reply-To: <ae75ba0c-6222-6d2d-dbb5-0274e2ea0385@cox.net>
References: <8f75fd9b-8ba9-8bfb-cac6-3c0f33d2b760@cox.net> <alFo1w0081DF5NZ01lFqJd> <ae75ba0c-6222-6d2d-dbb5-0274e2ea0385@cox.net>
* 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