pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_restore load data
4+ messages / 3 participants
[nested] [flat]

* pg_restore load data
@ 2017-11-16 21:07 Ron Johnson <ron.l.johnson@cox.net>
  2017-11-16 21:13 ` Re: pg_restore load data bricklen <bricklen@gmail.com>
  2017-11-16 21:33 ` Re: pg_restore load data Ron Johnson <ron.l.johnson@cox.net>
  0 siblings, 2 replies; 4+ messages in thread

From: Ron Johnson @ 2017-11-16 21:07 UTC (permalink / raw)
  To: pgsql-general

Hi,

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.

Thanks

-- 
World Peace Through Nuclear Pacification



-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pg_restore load data
  2017-11-16 21:07 pg_restore load data Ron Johnson <ron.l.johnson@cox.net>
@ 2017-11-16 21:13 ` bricklen <bricklen@gmail.com>
  1 sibling, 0 replies; 4+ messages in thread

From: bricklen @ 2017-11-16 21:13 UTC (permalink / raw)
  To: Ron Johnson <ron.l.johnson@cox.net>; +Cc: pgsql-general

On Thu, Nov 16, 2017 at 1:07 PM, Ron Johnson <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.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pg_restore load data
  2017-11-16 21:07 pg_restore load data Ron Johnson <ron.l.johnson@cox.net>
@ 2017-11-16 21:33 ` Ron Johnson <ron.l.johnson@cox.net>
  1 sibling, 0 replies; 4+ messages in thread

From: Ron Johnson @ 2017-11-16 21:33 UTC (permalink / raw)
  To: pgsql-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

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pg_restore load data
@ 2017-11-16 21:22 melvin6925 <melvin6925@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: melvin6925 @ 2017-11-16 21:22 UTC (permalink / raw)
  To: Ron Johnson <ron.l.johnson@cox.net>; pgsql-general

The command is COPY, not load.


Sent via the Samsung Galaxy S® 6, an AT&T 4G LTE smartphone
-------- Original message --------From: Ron Johnson <ron.l.johnson@cox.net> Date: 11/16/17  16:07  (GMT-05:00) To: pgsql-general@postgresql.org Subject: [GENERAL] pg_restore load data 
Hi,

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.

Thanks

-- 
World Peace Through Nuclear Pacification



-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2017-11-16 21:33 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-11-16 21:07 pg_restore load data Ron Johnson <ron.l.johnson@cox.net>
2017-11-16 21:13 ` bricklen <bricklen@gmail.com>
2017-11-16 21:33 ` Ron Johnson <ron.l.johnson@cox.net>
2017-11-16 21:22 Re: pg_restore load data melvin6925 <melvin6925@gmail.com>

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