X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8F4FB537B4 for ; Fri, 25 Mar 2005 03:57:51 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 95739-08 for ; Fri, 25 Mar 2005 03:57:48 +0000 (GMT) Received: from solanne.parasun.net (solanne.parasun.net [204.174.16.15]) by svr1.postgresql.org (Postfix) with ESMTP id D9C51537B0 for ; Fri, 25 Mar 2005 03:57:46 +0000 (GMT) Received: from dynamic-204-95-16-127.sanbrunocable.com ([204.95.16.127] helo=oss4u.com) by solanne.parasun.net with smtp (Exim 4.43) id 1DEfxH-0004b5-7U for pgsql-admin@postgresql.org; Thu, 24 Mar 2005 19:57:51 -0800 Received: (qmail 10254 invoked from network); 25 Mar 2005 03:51:52 -0000 Received: from tiburon.oss4u.com (192.168.1.4) by gw.oss4u.com (192.168.1.1) with ESMTP; 25 Mar 2005 03:51:52 -0000 From: "Uwe C. Schroeder" To: "Lee Wu" Subject: Re: pg_dump, pg_restore, insert vs copy Date: Thu, 24 Mar 2005 19:57:50 -0800 User-Agent: KMail/1.6.1 Cc: "Tom Lane" , References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200503241957.50046.uwe@oss4u.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.958 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200503/413 X-Sequence-Number: 16911 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@sss.pgh.pa.us] > Sent: Thursday, March 24, 2005 9:11 AM > To: Lee Wu > Cc: pgsql-admin@postgresql.org > Subject: Re: [ADMIN] pg_dump, pg_restore, insert vs copy > > "Lee Wu" 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