From: Peter Eisentraut <peter_e@gmx.net>
To: Carolyn Lu Wong <carolyn@kss.net.au>
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: Database authentication and configuration
Date: Tue, 18 Jul 2000 23:45:39 +0200 (CEST)
Message-ID: <Pine.LNX.4.21.0007182041530.1545-100000@localhost.localdomain> (raw)
In-Reply-To: <3973BA8A.4FD285F9@kss.net.au>
Carolyn Lu Wong writes:
> Are there anywhere to configure so that whenever I call 'psql dbname',
> it'll always prompt for user authentication instead of getting into the
> database directly?
psql from 7.0 and later should automatically ask for a password if one is
required.
> In addition, I'd like to default various database settings when I
> connect to the database. Where is the place to do such configuration?
That depends on the nature of the various settings. You can put commands
into ~/.psqlrc that will be executed when psql starts up.
--
Peter Eisentraut Sernanders väg 10:115
peter_e@gmx.net 75262 Uppsala
http://yi.org/peter-e/ Sweden
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-sql@postgresql.org
Cc: peter_e@gmx.net, carolyn@kss.net.au
Subject: Re: Database authentication and configuration
In-Reply-To: <Pine.LNX.4.21.0007182041530.1545-100000@localhost.localdomain>
References: <3973BA8A.4FD285F9@kss.net.au> <Pine.LNX.4.21.0007182041530.1545-100000@localhost.localdomain>
* 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