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

From Bruce Momjian
Subject Re: PSQLRC environment variable.
Date
Msg-id 200403100143.i2A1hEs26146@candle.pha.pa.us
Whole thread Raw
In response to Re: PSQLRC environment variable.  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: PSQLRC environment variable.
List pgsql-patches
Tom Lane wrote:
> James Tanis <jtt@sysd.com> writes:
> > In the tradition of telnet, xinit, and others, I've created a patch which
> > allows users to override the location of .psqlrc by setting the PSQLRC
> > environment variable.
>
> Uh, why is that a good idea?

Well, suppose you want all your users to use the same psqlrc file.
Instead of creating symlinks for every user, you can just set PSQLRC in
/etc/profile and everyone gets it.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: PSQLRC environment variable.
Next
From: Tom Lane
Date:
Subject: Re: PSQLRC environment variable.