pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jie Liang <jie@stbernard.com>
Cc: 'Bruce Momjian ' <pgman@candle.pha.pa.us>
Cc: 'pgsql-admin@postgresql.org ' <pgsql-admin@postgresql.org>
Cc: 'pgsql-bugs@postgresql.org' <pgsql-bugs@postgresql.org>
Subject: Re: ineffiency of pg_restore
Date: Mon, 12 Aug 2002 18:38:26 -0400
Message-ID: <19334.1029191906@sss.pgh.pa.us> (raw)
In-Reply-To: <7C760DAA511DC74B99E7D22189F786F101BF2164@mail01.stbernard.com>
References: <7C760DAA511DC74B99E7D22189F786F101BF2164@mail01.stbernard.com>

Jie Liang <jie@stbernard.com> writes:
> pg_restore give admin a lot of flexabilities, it can restore any object
> from a single dump file. But if the table is very big, e.g. 2M records,
> it will take a long time to restore because it use INSERTs.

This is demonstrably not the case --- at least not by default.  You
get the same commands you would've gotten from pg_dump.  Sure you
didn't create the dump file with "-d" ?

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <19334.1029191906@sss.pgh.pa.us>
Permalink:  ../19334.1029191906@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19334.1029191906@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jie@stbernard.com, pgman@candle.pha.pa.us, pgsql-bugs@postgresql.org
  Subject: Re: ineffiency of pg_restore
  In-Reply-To: <19334.1029191906@sss.pgh.pa.us>
  References: <7C760DAA511DC74B99E7D22189F786F101BF2164@mail01.stbernard.com> <19334.1029191906@sss.pgh.pa.us>

* 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