From: Jie Liang <jie@stbernard.com>
To: Jie Liang <jie@stbernard.com>
To: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: 'pgsql-admin@postgresql.org ' <pgsql-admin@postgresql.org>
Cc: 'pgsql-bugs@postgresql.org' <pgsql-bugs@postgresql.org>
Subject: inefficiency of pg_restore
Date: Mon, 12 Aug 2002 15:16:51 -0700
Message-ID: <7C760DAA511DC74B99E7D22189F786F101BF2163@mail01.stbernard.com> (raw)
By default, pg_dump uses COPY to restore its data when we use
the plain text form, however, it's not the case when we use
the customer format, e.g.
pg_dump -Fc mydb > mydb.out
the documenation of pg_restore address
su-2.05$ time psql urldb<jurloldmail.out
You are now connected as new user jliang.
CREATE
real 0m0.662s
user 0m0.045s
sys 0m0.015s
su-2.05$ time pg_restore -cvt jurloldmail -d urldb urldb.out.020810
pg_restore: connecting to database for restore
pg_restore: dropping TABLE jurloldmail
pg_restore: connecting to database urldb as user jliang
pg_restore: creating TABLE jurloldmail
pg_restore: restoring data for table jurloldmail
real 0m6.880s
user 0m0.296s
sys 0m0.028s
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: jie@stbernard.com, pgman@candle.pha.pa.us, tgl@sss.pgh.pa.us, pgsql-bugs@postgresql.org
Subject: Re: inefficiency of pg_restore
In-Reply-To: <7C760DAA511DC74B99E7D22189F786F101BF2163@mail01.stbernard.com>
References: <7C760DAA511DC74B99E7D22189F786F101BF2163@mail01.stbernard.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