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 23EFE8BA01F for ; Thu, 10 Feb 2005 18:16:34 +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 86015-09 for ; Thu, 10 Feb 2005 18:16:25 +0000 (GMT) Received: from candle.pha.pa.us (64-139-89-126-ubr04b-malvrn01-pa.hfc.comcastbusiness.net [64.139.89.126]) by svr1.postgresql.org (Postfix) with ESMTP id ED98C8BA014 for ; Thu, 10 Feb 2005 18:16:25 +0000 (GMT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id j1AIGKs16299; Thu, 10 Feb 2005 13:16:20 -0500 (EST) From: Bruce Momjian Message-Id: <200502101816.j1AIGKs16299@candle.pha.pa.us> Subject: Re: Win32-postgresql command line password In-Reply-To: <420BA226.1020003@zenonproductions.be> To: Pascal Van Puymbroeck Date: Thu, 10 Feb 2005 13:16:20 -0500 (EST) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200502/86 X-Sequence-Number: 16254 Pascal Van Puymbroeck wrote: > I'm not sure if this is the best method but I use the: > > pgsql -d dbase -U ppk -f e:\\Test.imp < passwd.txt > > Where passwd.txt holds the password for the user specified. Also see .pgpass in the libpq manual section. It allows you to store passwords in a file for use by psql and all other libpq applications. On Win32 the file is stored in %APPDATA%\postgresql\pgpass.conf. We should mention this in the psql manual page and I will add a mention for 8.1. Thanks. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073