Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [GENERAL] How to automate password requests?

From: Alan Hodgson <ahodgson(at)simkin.ca>
Date: Wed Nov 28 2007 - 13:46:43 EST


On Wednesday 28 November 2007, Marten Lehmann <lehmann@cnm.de> wrote:
> Hello,
>
> I'm trying to automate some postgresql scripts, but I cannot find a way
> to pass a password directly to commands like pg_dump psql and so on.
> Even a
>
> echo "password" | psql
>
> doesn't work, the password prompt of psql is still waiting.
>
> mysql has the -p option. What would be the postgresql equivalent? I
> don't want to enter passwords dozend times.
>

create a .pgpass file.

-- 
The global consumer economy can best be described as the most efficient way  
to convert natural resources into waste.


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
Received on Wed Nov 28 13:48:48 2007

This archive was generated by hypermail 2.1.8 : Mon Jun 16 2008 - 20:46:51 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library