Re: Explicit psqlrc - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Explicit psqlrc
Date
Msg-id 1279653456-sup-6215@alvh.no-ip.org
Whole thread Raw
In response to Re: Explicit psqlrc  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Explicit psqlrc
List pgsql-hackers
Excerpts from Robert Haas's message of mar jul 20 11:48:29 -0400 2010:

> > That seems sub-optimal; I can see people wanting to use this feature to do something like:
> >
> > psql -c 'set work_mem = blah' -f script.sql
> >
> > and then being surprised when it works differently than just `psql -f script.sql`.
> 
> I agree... but then they might also be surprised if psql -c
> 'something' works differently from psql -c 'something' -f /dev/null

I think we should just make sure -X works, and have .psqlrc be read when
it's not specified regardless of -f and -c switches.

Otherwise it's just plain confusing.


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Some git conversion issues
Next
From: Magnus Hagander
Date:
Subject: Re: Some git conversion issues