From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mike Miller <temp6453@hotmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Standard Input Passwords?
Date: Thu, 31 Jul 2003 17:08:56 -0400
Message-ID: <19154.1059685736@sss.pgh.pa.us> (raw)
In-Reply-To: <BAY1-F173TIVvLVKi3s000082d3@hotmail.com>
References: <BAY1-F173TIVvLVKi3s000082d3@hotmail.com>
"Mike Miller" <temp6453@hotmail.com> writes:
> pg_dump -h server -Of ./temp.dmp -u username << END
> username
> password
> END
> This worked until I upgraded to 7.3.3 from 7.1.3. Any ideas why this would
> happen and how to work around it to get automatic scriped dumps?
This is a deliberate change for security purposes: it wants to read the
password from /dev/tty not stdin.
I'd recommend that you abandon this approach and start keeping your
passwords in ~/.pgpass, instead. See
http://developer.postgresql.org/docs/postgres/libpq-pgpass.html
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, temp6453@hotmail.com
Subject: Re: Standard Input Passwords?
In-Reply-To: <19154.1059685736@sss.pgh.pa.us>
References: <BAY1-F173TIVvLVKi3s000082d3@hotmail.com> <19154.1059685736@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox