Re: How to do pg_dump + pg_restore within Perl script? - Mailing list pgsql-general

From Tom Lane
Subject Re: How to do pg_dump + pg_restore within Perl script?
Date
Msg-id 16779.1273522750@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to do pg_dump + pg_restore within Perl script?  (Kynn Jones <kynnjo@gmail.com>)
List pgsql-general
Kynn Jones <kynnjo@gmail.com> writes:
> But I have not found a way for my script to provide a password when it
> runs commands like dropdb, createdb, and pg_restore with the "-h <REMOTE
> HOST>" flag.  So I end up resorting to SSH-tunneling.  This is what I'm
> trying to avoid.

You don't really want to embed a password in the script anyway.
Consider using a ~/.pgpass file, or look at non-password-based
authentication mechanisms.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: PostgreSQL 9.0 - support for RANGE value PRECEDING window functions
Next
From: Tim Landscheidt
Date:
Subject: Re: question about unique indexes