Received: from golem.jpl.nasa.gov (root@hectic-2.jpl.nasa.gov [128.149.68.204]) by hub.org (8.8.8/8.7.5) with ESMTP id MAA28702; Wed, 15 Jul 1998 12:26:00 -0400 (EDT) Received: from apop-server.alumni.caltech.edu (localhost [127.0.0.1]) by golem.jpl.nasa.gov (8.8.5/8.8.5) with ESMTP id QAA26984; Wed, 15 Jul 1998 16:32:11 GMT Sender: tgl@mythos.jpl.nasa.gov Message-ID: <35ACD98B.8CD3F2CB@apop-server.alumni.caltech.edu> Date: Wed, 15 Jul 1998 16:32:11 +0000 From: "Thomas G. Lockhart" Organization: Caltech/JPL X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.30 i686) MIME-Version: 1.0 To: rknop@mh1.lbl.gov CC: Herouth Maoz , pgsql-interfaces@postgreSQL.org, Postgres Documentation List Subject: Re: [INTERFACES] libpq & user References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > > In the psql source code, they set the user by setting the PGUSER > > environment variable. The source of the PQsetdb function states that the > > following environment variables are accepted (although this is not > > documented - at least not in my old 6.2.1 version): > > Aha! Thank you, that was the secret. I do not believe that these > environment variables are documented in 6.3.1 either -- at least, I > didn't find them. I tried USER, but not PGUSER. These environment variables are documented in the libpq section of the new v6.3.x html/hardcopy documents. However, PGUSER was omitted. Would someone like to add it to the sgml sources? It is in doc/src/sgml/libpq.sgml Look for PGHOST, put in some text in the appropriate area, and send a patch. It's that easy! (Wasn't that a Ross Perot quote?...) - Tom