Re: pg_dump, pg_restore, insert vs copy

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Lee Wu" <Lwu(at)mxlogic(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_dump, pg_restore, insert vs copy
Date: 2005-03-24 15:52:06
Message-ID: 27059.1111679526@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Lee Wu" <Lwu(at)mxlogic(dot)com> writes:
> When I use pg_dump to back up the whole database and then pg_restore an
> individual table,
> pg_restore uses COPY. Great.
> When I use pg_dump to back up an individual table and pg_restore it,
> pg_restore uses INSERT.

Not for me...

That decision is fixed at pg_dump time; it's not possible for pg_restore
to change it, because the data is already that way (or not) in the dump
file. Maybe you misinterpreted what you saw?

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Lee Wu 2005-03-24 16:05:39 Re: pg_dump, pg_restore, insert vs copy
Previous Message Lee Wu 2005-03-24 15:22:59 pg_dump, pg_restore, insert vs copy