Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 2345F2E2E8D for ; Fri, 8 Feb 2008 04:48:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 71392-07 for ; Fri, 8 Feb 2008 04:48:07 -0400 (AST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id 989BA2E2A35 for ; Fri, 8 Feb 2008 04:48:10 -0400 (AST) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JNOty-0003Lz-0k for pgsql-admin@postgresql.org; Fri, 08 Feb 2008 08:48:06 +0000 Received: from 77.70.61.39 ([77.70.61.39]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Feb 2008 08:48:06 +0000 Received: from milen by 77.70.61.39 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Feb 2008 08:48:06 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-admin@postgresql.org From: "Milen A. Radev" Subject: Re: Pg_dump and password Date: Fri, 08 Feb 2008 10:47:58 +0200 Lines: 16 Message-ID: References: <200802081020.55294.achill@matrix.gatewaynet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 77.70.61.39 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <200802081020.55294.achill@matrix.gatewaynet.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.12 tagged_above=0 required=5 tests=AWL=-0.948, BAYES_50=0.001, RCVD_NUMERIC_HELO=2.067 X-Spam-Level: * X-Archive-Number: 200802/88 X-Sequence-Number: 28162 Achilleas Mantzios написа: > Στις Friday 08 February 2008 10:04:46 ο/η Pleyer, Walter έγραψε: >> Hi Folks! >> >> Is it possible to call pg_dump not only with -U username but also with the user's password? > No, you should use the PGPASSWORD env variable. >> Walter Actually the recommended method for passing a password to a libpq-linked programme is by using the .pgpass file (http://www.postgresql.org/docs/8.3/static/libpq-envars.html and http://www.postgresql.org/docs/8.3/static/libpq-pgpass.html). -- Milen A. Radev