Re: [HACKERS] psql --batch - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: [HACKERS] psql --batch
Date
Msg-id CAFj8pRA=CtXH1xyVX+x1hRygHpnYRL6S12aG1VKsNU=qG6H6kg@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] psql --batch  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: [HACKERS] psql --batch  (Craig Ringer <craig@2ndquadrant.com>)
List pgsql-hackers


2017-08-28 9:33 GMT+02:00 Fabien COELHO <coelho@cri.ensmp.fr>:

ISTM that the real pain is the "-v ON_ERRORS_STOP=1" which I occasionally
encountered as well, the other one letter ones are not too bad. Maybe it
would be enough to have a shortcut for this one, say "-B"?

I agree with last sentence. I don't think so -qAtX are expected always, but
"-v ON_ERRORS_STOP=1" is pretty often.

Yep. I often "\set" that in the script.

What do you think about long option "--on-errors-stop" ?

It does not really relieve the typing pain Craig is complaining about, but it would be ok as the long option version if -B is added, and it is auto-completion friendly.

ok

Pavel 


--
Fabien.

pgsql-hackers by date:

Previous
From: "yangjie@highgo.com"
Date:
Subject: Re: [HACKERS] [POC] hash partitioning
Next
From: Craig Ringer
Date:
Subject: Re: [HACKERS] Make pg_regress print a connstring with sockdir