From: Maarten Boekhold <maarten.boekhold@tibcofinance.com>
To: Raul Carvalho <rmpc@fe.up.pt>
Cc: pgsql-admin@postgresql.org
Subject: Re: Maintenance
Date: Mon, 17 Apr 2000 13:29:21 +0200
Message-ID: <38FAF591.EC748AD1@tibcofinance.com> (raw)
References: <Pine.OSF.3.96.1000417122204.25077B-100000@saga.fe.up.pt>
Raul Carvalho wrote:
>
> Hello all,
>
> I am having a problem regarding maintenance of my databases. I have four
> small db's and clients must use password autentication.
>
> The problem is that when I try to pg_dump any of them, I don't know how
> can I pass username and password. Shouldn't there be a command line option
> to do this? Environment variables are very unconvenient...
echo "username\npassword" | pg_dump -u ....
> The same problem regarding restoring the database. "cat xpto.dump | psql
> -e dbname" also asks for passwd...
echo "username\npassword" | psql -u -f xpto.dump ....
btw. if executing this from a script I find environment variables more
convenient.
Maarten
--
Maarten Boekhold, maarten.boekhold@tibcofinance.com
TIBCO Finance Technology Inc.
"Sevilla" Building
Entrada 308
1096 ED Amsterdam, The Netherlands
tel: +31 20 6601000 (direct: +31 20 6601066)
fax: +31 20 6601005
http://www.tibcofinance.com
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: maarten.boekhold@tibcofinance.com, rmpc@fe.up.pt
Subject: Re: Maintenance
In-Reply-To: <38FAF591.EC748AD1@tibcofinance.com>
* 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