Re: Explicit psqlrc - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Explicit psqlrc
Date
Msg-id 1267898187.14188.3.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: Explicit psqlrc  (Magnus Hagander <magnus@hagander.net>)
Responses Re: Explicit psqlrc
List pgsql-hackers
On fre, 2010-03-05 at 11:30 +0100, Magnus Hagander wrote:
> > Do you have a use-case where --psqlrc would be more useful than an
> > environment variable, or is it *only* bike-shedding? ;)
> 
> Just to be clear, the code difference isn't very large. Attached is a
> patch that does both PSQLRC and --psqlrc.

I can see the environment variable variant as an analogy to BASH_ENV,
but what is the use case for the --psqlrc option?  Wouldn't it be easier
and more useful to just be able to process more than one file, say by
specifying -f more than once?




pgsql-hackers by date:

Previous
From: Kiswono Prayogo
Date:
Subject: Re: C++ project using postgresql source
Next
From: Josh Berkus
Date:
Subject: Re: SQL compatibility reminder: MySQL vs PostgreSQL