Re: [ADMIN] Win32-postgresql command line password

2005-02-10 Thread Bruce Momjian
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 f

Re: [ADMIN] Win32-postgresql command line password

2005-02-10 Thread Pascal Van Puymbroeck
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. Hope this helps you out. Pascal Van Puymbroeck ZENON productions bvba ---(end of broadcast)--

Re: [ADMIN] Win32 Postgresql Command Line Password Specification

2005-02-08 Thread John DeSoi
On Feb 8, 2005, at 3:11 AM, Andrei Bintintan wrote: I have to run some command line commands that I have to run on a windows machine. Like pgsql, dropdb, createdb etc. All these commands are runned from a php scripts.   Now, my question is how can I specify a User and Password to postgresql dat

Re: [ADMIN] Win32 Postgresql Command Line Password

2005-02-08 Thread Magnus Hagander
> This might not apply to the win32 version. But in the Unix > version you can put this information in a .pgpass file. This > enables you to keep passwords on all user accounts and still > be able to automate tasks. It applies to win32 as well, only the file is called "pgpass.conf", see http://w

Re: [ADMIN] Win32 Postgresql Command Line Password

2005-02-08 Thread Iain
t;[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; Sent: Tuesday, February 08, 2005 6:36 PM Subject: Re: [ADMIN] Win32 Postgresql Command Line Password This might not apply to the win32 version. But in the Unix version you can put this information in a .pgpass file. This enables you to keep passwords

Re: [ADMIN] Win32 Postgresql Command Line Password

2005-02-08 Thread John Jensen
(at least upto 7.4.6 - I don't know about later versions) thereis no way to specify the password on the commandline. Regards Iain - Original Message - From: Andrei Bintintan To: pgsql-admin@postgresql.org Sent: Tuesday, February 08, 2005 5:11 PM Subject: [ADMIN] Win32 Postg

Re: [ADMIN] Win32 Postgresql Command Line Password Specification

2005-02-08 Thread Tom Arthurs
Not sure if it will work in windows, but in unix, I use the envrionmental variable PGPASSWORD Not the safest thing in the world, but in my case, if a hacker's gotten through two layers of firewall, I'm sunk anyhow. :) Andrei Bintintan wrote: Hi, I have to run some command line commands that I h

Re: [ADMIN] Win32 Postgresql Command Line Password Specification

2005-02-08 Thread Iain
it is (at least upto 7.4.6 - I don't know about later versions) thereis no way to specify the password on the commandline.   Regards Iain - Original Message - From: Andrei Bintintan To: pgsql-admin@postgresql.org Sent: Tuesday, February 08, 2005 5:11 PM Subject: [ADM

[ADMIN] Win32 Postgresql Command Line Password Specification

2005-02-08 Thread Andrei Bintintan
Hi,   I have to run some command line commands that I have to run on a windows machine. Like pgsql, dropdb, createdb etc. All these commands are runned from a php scripts.   Now, my question is how can I specify a User and Password to postgresql database system. I found out how can I say