Re: pg_dump, pg_restore, insert vs copy

From: "Uwe C(dot) Schroeder" <uwe(at)oss4u(dot)com>
To: "Lee Wu" <Lwu(at)mxlogic(dot)com>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_dump, pg_restore, insert vs copy
Date: 2005-03-25 03:57:50
Message-ID: 200503241957.50046.uwe@oss4u.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thursday 24 March 2005 08:35, Lee Wu wrote:
> I believe you're right.
>
> Any easy way to find out if -d was used if dump is done someone else?

yes, just look into your dump file. If it contains INSERT statements -d was
used, if it contains COPY statement -d was not used.

>
> Thanks,
>
> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
> Sent: Thursday, March 24, 2005 9:11 AM
> To: Lee Wu
> Cc: pgsql-admin(at)postgresql(dot)org
> Subject: Re: [ADMIN] pg_dump, pg_restore, insert vs copy
>
> "Lee Wu" <Lwu(at)mxlogic(dot)com> writes:
> > MY OS command is:
> > pg_restore -v -t mytable -d mydb -U postgres -R my.dmp
>
> That doesn't prove a thing; the question is what you typed at pg_dump.
>
> Thinking about it, I wonder if you did "pg_dump -d mydb ..."
> -d means something different to pg_dump than pg_restore.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org

--
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Lee Wu 2005-03-25 04:41:44 Re: pg_dump, pg_restore, insert vs copy
Previous Message Moran.Michael 2005-03-25 01:31:56 Calling Functions from Delete Rules (+ contrib/pgcrypto) = madnes s?