X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 290019DC865 for ; Thu, 2 Mar 2006 03:33:39 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 18213-03 for ; Thu, 2 Mar 2006 03:33:39 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id 9A8499DC81E for ; Thu, 2 Mar 2006 03:33:36 -0400 (AST) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id k227XWWt078765 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 2 Mar 2006 00:33:34 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.4/8.13.4) with ESMTP id k227XWse087618; Thu, 2 Mar 2006 00:33:32 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.4/8.13.4/Submit) id k227XVMQ087617; Thu, 2 Mar 2006 00:33:31 -0700 (MST) (envelope-from mfuhr) Date: Thu, 2 Mar 2006 00:33:31 -0700 From: Michael Fuhr To: Tom Lane Cc: Mark Fenbers , PostgreSQL - SQL Subject: Re: Change date format through an environmental variable? Message-ID: <20060302073331.GA87268@winnie.fuhr.org> References: <4405DAAA.4010908@noaa.gov> <4405F419.5080306@noaa.gov> <20060301194213.GA82162@winnie.fuhr.org> <22254.1141280207@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22254.1141280207@sss.pgh.pa.us> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.122 required=5 tests=[AWL=0.122] X-Spam-Score: 0.122 X-Spam-Level: X-Archive-Number: 200603/39 X-Sequence-Number: 24385 On Thu, Mar 02, 2006 at 01:16:47AM -0500, Tom Lane wrote: > Michael Fuhr writes: > > The libpq documentation has a list of environment variables, although > > it's not complete: > > http://www.postgresql.org/docs/8.1/interactive/libpq-envars.html > > Er, what's not complete about it? Feel free to send a doc patch ... Missing from that page are mostly standard variables that aren't specific to PostgreSQL but that applications like psql might use. Documented elsewhere are: EDITOR (psql) PAGER (psql) PGDATA (various) PSQL_EDITOR (psql) SHELL (psql) TMPDIR (psql) TZ (postmaster) VISUAL (psql) I see LC_COLLATE and LC_CTYPE in a few places but not in the documentation for postgres/postmaster, which is where they appear to be used (backend/main/main.c). Should those pages mention them? A couple of variables are used in the code but aren't mentioned in the documentation. Are they worth documenting? COMSPEC (psql, Win32 only) PG_DBPATH (ecpg, Informix mode) -- Michael Fuhr