Re: PSQLRC environment variable. - Mailing list pgsql-patches

From Tom Lane
Subject Re: PSQLRC environment variable.
Date
Msg-id 18343.1079240733@sss.pgh.pa.us
Whole thread Raw
In response to Re: PSQLRC environment variable.  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: PSQLRC environment variable.
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I just checked a few apps and I see they usually allow a global config
> file to be specified.  How about SYSPSQLRC that adds a system-wide psql
> config file to be read before the one in the home directory?

The ones I know of that allow such a thing generally hard-wire the
location of the global config file at build time, rather than taking it
from an environment variable.  The env var approach seems weird, and a
tad inefficient (since you'd have to put such an env var into the global
.profile, meaning it propagates into every single process ever launched
on your system).  Also I think we have at least one global config file
already for libpq, and its location is hard-wired.

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: client side syntax error position (v3)
Next
From: Claudio Natoli
Date:
Subject: misc patches (minor)