Re: proposal: new long psql parameter --on-error-stop - Mailing list pgsql-hackers

From Fabrízio de Royes Mello
Subject Re: proposal: new long psql parameter --on-error-stop
Date
Msg-id CAFcNs+rZXauTqPSkQ2tggQv9xAd1J14BY6XujvN0agp5tpbtkQ@mail.gmail.com
Whole thread Raw
In response to Re: proposal: new long psql parameter --on-error-stop  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: proposal: new long psql parameter --on-error-stop
Re: proposal: new long psql parameter --on-error-stop
List pgsql-hackers
<div dir="ltr"><div class="gmail_extra"><br />On Fri, Feb 28, 2014 at 3:17 PM, Pavel Stehule <<a
href="mailto:pavel.stehule@gmail.com">pavel.stehule@gmail.com</a>>wrote:<br />><br />> 2014-02-28 19:13
GMT+01:00Tom Lane <<a href="mailto:tgl@sss.pgh.pa.us">tgl@sss.pgh.pa.us</a>>:<br /> ><br />>> Pavel
Stehule<<a href="mailto:pavel.stehule@gmail.com">pavel.stehule@gmail.com</a>> writes:<br />>> > for
beginnersis relative difficult to set psql variable from command line<br />>> > and option<br /> >> >
-vON_ERROR_STOP=1 is little bit unclean.<br />>> > and for any user it is not comfortable. So I propose a new
psqloption<br />>> > --on-error-stop<br />>><br />>> That saves a whole three characters ... not
sureit's really worth it,<br /> >> especially since it will not work on older versions.<br />>><br
/>>>Also, it's not like this will save people from having to know about the<br />>> ON_ERROR_STOP variable,
becausethere will still be plenty of contexts<br /> >> where they need to know that (eg, inspecting the setting
orchanging it<br />>> mid-session).  So I don't buy the argument that this simplifies what<br />>>
beginnersneed to learn.<br />><br />><br /> > three chars is not important<br />><br />> important is a
 placingin --help output<br />><br /><br /></div><div class="gmail_extra">Well, then we just have to add more info
to--help<br /></div><div class="gmail_extra"><br /></div><div class="gmail_extra">Regards,<br /></div><div
class="gmail_extra"><br/>--<br />Fabrízio de Royes Mello<br />Consultoria/Coaching PostgreSQL<br />>> Timbira: <a
href="http://www.timbira.com.br">http://www.timbira.com.br</a><br/> >> Blog sobre TI: <a
href="http://fabriziomello.blogspot.com">http://fabriziomello.blogspot.com</a><br/>>> Perfil Linkedin: <a
href="http://br.linkedin.com/in/fabriziomello">http://br.linkedin.com/in/fabriziomello</a><br/> >> Twitter: <a
href="http://twitter.com/fabriziomello">http://twitter.com/fabriziomello</a></div></div>

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: proposal: new long psql parameter --on-error-stop
Next
From: Pavel Stehule
Date:
Subject: Re: proposal: new long psql parameter --on-error-stop