Re: shell script to SQL statement: `pg_dump | psql -U`

From: "filippo" <filippo2991(at)virgilio(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: shell script to SQL statement: `pg_dump | psql -U`
Date: 2007-03-21 07:29:33
Message-ID: 1174462173.105601.197370@b75g2000hsg.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 20 Mar, 16:47, t(dot)(dot)(dot)(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane) wrote:
> "filippo" <filippo2(dot)(dot)(dot)(at)virgilio(dot)it> writes:
> > The problem with the current implementation is that sometime pd_dump
> > and psql ask for password but I want to create the database copy
> > without any user typing (it is a cron script).
>
> Create a ~/.pgpass file for the user that runs the cron job.

thanks Tom and Richard, actually it works now. However I wonder if
there is a SQL way, I'm partially in a Windows enviroment and I don't
trust very much the microsoft security.

Thanks and regards,

Filippo

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Naz Gassiep 2007-03-21 09:48:36 Bulk Data Entry
Previous Message Anton Melser 2007-03-21 06:54:27 Re: "sniffing" postgres queries