Skip site navigation (1) Skip section navigation (2)

Re: Database authentication and configuration

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Carolyn Lu Wong <carolyn(at)kss(dot)net(dot)au>
Cc: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Database authentication and configuration
Date: 2000-07-18 21:45:39
Message-ID: Pine.LNX.4.21.0007182041530.1545-100000@localhost.localdomain (view raw, whole thread or download thread mbox)
Lists: pgsql-sql
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

> 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(at)gmx(dot)net                   75262 Uppsala            Sweden

In response to

pgsql-sql by date

Next:From: andrewDate: 2000-07-19 00:19:03
Subject: Re: using a self referencing table
Previous:From: Tom LaneDate: 2000-07-18 21:43:03
Subject: Re: Median

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group