pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Standard Input Passwords?
2+ messages / 2 participants
[nested] [flat]

* Standard Input Passwords?
@ 2003-07-31 20:35  Mike Miller <temp6453@hotmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Mike Miller @ 2003-07-31 20:35 UTC (permalink / raw)
  To: pgsql-admin

pg_dump -h server -Of ./temp.dmp -u username << END
username
password
END

<-- I've been trying to use this command and have always been able to 
successfully dump my database via scripts.  Now, it prompts me despite this 
standard input value, or any other one.  It just waits for me to enter 
something.

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?

Thanks in advance.

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Standard Input Passwords?
@ 2003-07-31 21:08  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Mike Miller <temp6453@hotmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2003-07-31 21:08 UTC (permalink / raw)
  To: Mike Miller <temp6453@hotmail.com>; +Cc: pgsql-admin

"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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-07-31 21:08 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-07-31 20:35 Standard Input Passwords? Mike Miller <temp6453@hotmail.com>
2003-07-31 21:08 ` Tom Lane <tgl@sss.pgh.pa.us>

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