Re: Standard Input Passwords?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mike Miller" <temp6453(at)hotmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Standard Input Passwords?
Date: 2003-07-31 21:08:56
Message-ID: 19154.1059685736@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Mike Miller" <temp6453(at)hotmail(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2003-07-31 21:38:44 Re: LargeObjectDrop and simple_heap_delete - Are these errors normal?
Previous Message Mike Miller 2003-07-31 20:35:46 Standard Input Passwords?