send password to pg_dump - Mailing list pgsql-hackers

From shaunc
Subject send password to pg_dump
Date
Msg-id 8473174.post@talk.nabble.com
Whole thread Raw
Responses Re: send password to pg_dump
List pgsql-hackers
Hello,

I'm trying to run pg_dump programmatically, and I'm wondering how I can send
it a password.

I'm running it with a system() call in a child process, and sending the
password in from the parent process on stdin, but somehow pg_dump always
finds out how to ask my terminal for a password. How do I fool it?

(I need this to work in linux... in python would be preferable too.)

Thanks for any advice.

- Shaun
-- 
View this message in context: http://www.nabble.com/send-password-to-pg_dump-tf3048210.html#a8473174
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.



pgsql-hackers by date:

Previous
From: Adriaan van Os
Date:
Subject: Re: [BUGS] BUG #2907: pg_get_serial_sequence quoting
Next
From: "Simon Riggs"
Date:
Subject: Re: Piggybacking vacuum I/O