Received: from merganser.its.uu.se (merganser.its.uu.se [130.238.6.236]) by hub.org (8.10.1/8.10.1) with ESMTP id e6ILj5h19552 for ; Tue, 18 Jul 2000 17:45:05 -0400 (EDT) Received: from regulus.student.UU.SE ([130.238.5.2]:48773 "EHLO regulus.its.uu.se") by merganser.its.uu.se with ESMTP id ; Tue, 18 Jul 2000 23:44:46 +0200 Received: from peter (helo=localhost) by regulus.its.uu.se with local-esmtp (Exim 3.02 #2) id 13EfBM-0001uR-00; Tue, 18 Jul 2000 23:45:40 +0200 Date: Tue, 18 Jul 2000 23:45:39 +0200 (CEST) From: Peter Eisentraut To: Carolyn Lu Wong cc: "pgsql-sql@postgresql.org" Subject: Re: Database authentication and configuration In-Reply-To: <3973BA8A.4FD285F9@kss.net.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Archive-Number: 200007/178 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