Re: Win32-postgresql command line password

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Pascal Van Puymbroeck <pascal(dot)vanpuymbroeck(at)zenonproductions(dot)be>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Win32-postgresql command line password
Date: 2005-02-10 18:16:20
Message-ID: 200502101816.j1AIGKs16299@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Dick Davies 2005-02-10 20:13:54 removing create database privileges?
Previous Message Bruce Momjian 2005-02-10 18:10:09 Re: Column duplication with \d in psql