From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com> |
Cc: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Robert Haas <robertmhaas(at)gmail(dot)com>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, dinesh kumar <dineshkumar02(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: proposal: multiple psql option -c |
Date: | 2015-08-28 20:14:50 |
Message-ID: | CAKFQuwZO8gD4DOwfdXT35g-1yr4UkPeWJ3YgnRr81Ck=T1i9Hw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Aug 28, 2015 at 4:07 PM, Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com> wrote:
> On 8/26/15 8:15 AM, Pavel Stehule wrote:
>
>> + and then exit. This is useful in shell scripts. Start-up files
>> + (<filename>psqlrc</filename> and <filename>~/.psqlrc</filename>)
>> are
>> + ignored with this option.
>>
>
> Sorry if this was discussed and I missed it, but I think this is a bad
> idea. There's already an option to control this. More important, there's no
> option to force the rc files to be used, so if -g disables them you'd be
> stuck with that.
>
> I agree that the rc files are a danger when scripting, but if we want to
> do something about that then it needs to be consistent for ALL
> non-interactive use.
This ship has already sailed. The behavior described is consistent with
"-c" which "-g" should rightly conform with.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2015-08-28 20:18:25 | Re: proposal: multiple psql option -c |
Previous Message | Jim Nasby | 2015-08-28 20:07:48 | Re: proposal: multiple psql option -c |