Re: connect to postgres from shell scripts

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Devrim GUNDUZ <devrim(at)gunduz(dot)org>
Cc: Hemapriya <priyam_1121(at)yahoo(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: connect to postgres from shell scripts
Date: 2005-08-22 18:59:01
Message-ID: 19062.1124737141@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Devrim GUNDUZ <devrim(at)gunduz(dot)org> writes:
> psql checks for PGUSER, PGPASSWORD, PGHOST, PGPORT, PGDATABASE and some
> other environmental variables. Export relevant values to the parameters.

PGPASSWORD is deprecated because it is insecure on some platforms
(to wit, those where other users can see a process' environment
variables via ps). The ~/.pgpass file is the recommended way to go.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Marlowe 2005-08-22 19:43:21 Re: postgres optimization (effective_cache_size)
Previous Message Jason Minion 2005-08-22 17:56:36 Re: connect to postgres from shell scripts