Re: Explicit psqlrc

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: David Christensen <david(at)endpoint(dot)com>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, gabrielle <gorthx(at)gmail(dot)com>, Stephen Frost <sfrost(at)snowman(dot)net>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Mark Wong <markwkm(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Explicit psqlrc
Date: 2011-02-17 04:14:42
Message-ID: 201102170414.p1H4Egu16196@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas wrote:
> On Wed, Jul 21, 2010 at 11:06 PM, David Christensen <david(at)endpoint(dot)com> wrote:
> >
> > On Jul 21, 2010, at 12:31 PM, Alvaro Herrera wrote:
> >
> >> Excerpts from Peter Eisentraut's message of mi? jul 21 10:24:26 -0400 2010:
> >>> On tis, 2010-07-20 at 11:48 -0400, Robert Haas wrote:
> >>>> It's tempting to propose making .psqlrc apply only in interactive
> >>>> mode, period. ?But that would be an incompatibility with previous
> >>>> releases, and I'm not sure it's the behavior we want, either.
> >>>
> >>> What is a use case for having .psqlrc be read in noninteractive use?
> >>
> >> Even if there weren't one, why does it get applied to -f but not -c?
> >> They're both noninteractive.
> >
> >
> > So not to let the thread drop, it appears that we're faced with the following situation:
>
> Hmm. I thought we almost had consensus on changing the historical
> behavior of -c. If we do that, this all gets much simpler.

Added to TODO:

Consider having psql -c read .psqlrc, for consistency

psql -f already reads .psqlrc

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2011-02-17 04:16:26 Re: WALInsertLock contention
Previous Message Tatsuo Ishii 2011-02-17 04:13:53 Re: WALInsertLock contention