From: Tom Lane <tgl@sss.pgh.pa.us>
To: Devrim GUNDUZ <devrim@gunduz.org>
Cc: Hemapriya <priyam_1121@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: connect to postgres from shell scripts
Date: Mon, 22 Aug 2005 14:59:01 -0400
Message-ID: <19062.1124737141@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.63.0508222031520.30926@emo.org.tr>
References: <20050822154246.28488.qmail@web34210.mail.mud.yahoo.com>
<Pine.LNX.4.63.0508222031520.30926@emo.org.tr>
Devrim GUNDUZ <devrim@gunduz.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, devrim@gunduz.org, priyam_1121@yahoo.com
Subject: Re: connect to postgres from shell scripts
In-Reply-To: <19062.1124737141@sss.pgh.pa.us>
References: <20050822154246.28488.qmail@web34210.mail.mud.yahoo.com> <Pine.LNX.4.63.0508222031520.30926@emo.org.tr> <19062.1124737141@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox