X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.225.181]) by svr1.postgresql.org (Postfix) with ESMTP id 62B59CC58C for ; Wed, 16 Jul 2003 14:44:27 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr5.postgresql.org [64.117.225.181]) (amavisd-new, port 10024) with ESMTP id 39923-04 for ; Wed, 16 Jul 2003 14:44:38 +0000 (GMT) Received: from mail1.dr.myx.net (mail1.dr.myx.net [217.10.193.161]) by svr1.postgresql.org (Postfix) with ESMTP id 267DBCC678 for ; Wed, 16 Jul 2003 11:44:15 -0300 (ADT) Received: from workstation24 (unknown [81.12.137.146]) by mail1.dr.myx.net (mydomain.myx.net) with ESMTP id A6287300681 for ; Wed, 16 Jul 2003 17:44:29 +0300 (EEST) Message-ID: <00be01c34ba8$aec682e0$0600a8c0@fix.ro> From: "Viorel Dragomir" To: References: <004501c34b9f$f7d8f520$0600a8c0@fix.ro> <18025.1058365770@sss.pgh.pa.us> Subject: Re: pg_dump "feature" Date: Wed, 16 Jul 2003 17:43:54 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/203 X-Sequence-Number: 14317 Thanks for the answer[s]. Interesting that when i launch the command from php through exec() it works fine even on pg_dump 7.3.x I guess this feature works only on [shell] command line. This is the php code: $tmp_fname = tempnam("/tmp", "file-"); $f = fopen($tmp_fname, "w"); fwrite($f, "$username\n".USER_DB_PASSWORD."\n"); fclose($f); $cmd = "pg_dump $add_cmd $export $add_table < $tmp_fname"; $result = system($cmd); unlink($tmp_fname); ----- Original Message ----- From: "Tom Lane" To: "Viorel Dragomir" Cc: Sent: Wednesday, July 16, 2003 5:29 PM Subject: Re: [SQL] pg_dump "feature" > "Viorel Dragomir" writes: > > In 7.3.x the pg_dump accepts the password only from stdin. The user must en= > > ter his password. > > It's a feature or a bug, because i can't see any logic in this behaviour. > > It's a feature ... or at least an intentional change. > > If you want to keep your password in a file, see the ~/.pgpass feature. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match