Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 27B909FB531 for ; Mon, 15 Jan 2007 11:48:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 84899-01-6 for ; Mon, 15 Jan 2007 11:47:53 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 8098A9FB85F for ; Mon, 15 Jan 2007 11:40:01 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l0FFdIqb015639; Mon, 15 Jan 2007 10:39:18 -0500 (EST) To: "=?iso-8859-1?Q?H=E9lder_M._Vieira?=" cc: pgsql-admin@postgresql.org Subject: Re: Pg_dump behaviour In-reply-to: <002c01c7389a$cba58590$6200a8c0@hmv02> References: <002c01c7389a$cba58590$6200a8c0@hmv02> Comments: In-reply-to "=?iso-8859-1?Q?H=E9lder_M._Vieira?=" message dated "Mon, 15 Jan 2007 11:46:29 +0000" Date: Mon, 15 Jan 2007 10:39:18 -0500 Message-ID: <15638.1168875558@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/123 X-Sequence-Number: 24279 "=?iso-8859-1?Q?H=E9lder_M._Vieira?=" writes: > I often perform single-table backups using pgadmin. > Recently, a problem occurred while doing that kind of backup using pgadmin > 1.6.2 and PostgreSQL 8.2.1 on a Windows server: > For instance, I have a database named 'mdg', containing a schema named > 'art', in turn containing a table named 'tefh'. > When I try to backup this table to the root directory with pgadmin, it > generates and executes the following command: > pg_dump.exe -i -h localhost -p 5432 -U postgres -F c -v -f "c:\tefh" -t > tefh -n art mdg That was the pre-8.2 way to do it; now the right thing would be -t art.tefh Sounds like pgadmin needs an update. While they're at it, they should definitely lose the -i switch ... using that by default is extremely stupid/dangerous. regards, tom lane