From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Fabrízio Mello <fabriziomello(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: proposal: new long psql parameter --on-error-stop |
Date: | 2014-02-28 18:27:35 |
Message-ID: | CAFj8pRDjQFMDwd1=+TL6j10qjnQhb9Uk0o1pY2bqQMgxqt9KNA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
2014-02-28 19:25 GMT+01:00 Fabrízio de Royes Mello <fabriziomello(at)gmail(dot)com>
:
>
> On Fri, Feb 28, 2014 at 3:17 PM, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
> wrote:
> >
> > 2014-02-28 19:13 GMT+01:00 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> >
> >> Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> >> > for beginners is relative difficult to set psql variable from command
> line
> >> > and option
> >> > -v ON_ERROR_STOP=1 is little bit unclean.
> >> > and for any user it is not comfortable. So I propose a new psql option
> >> > --on-error-stop
> >>
> >> That saves a whole three characters ... not sure it's really worth it,
> >> especially since it will not work on older versions.
> >>
> >> Also, it's not like this will save people from having to know about the
> >> ON_ERROR_STOP variable, because there will still be plenty of contexts
> >> where they need to know that (eg, inspecting the setting or changing it
> >> mid-session). So I don't buy the argument that this simplifies what
> >> beginners need to learn.
> >
> >
> > three chars is not important
> >
> > important is a placing in --help output
> >
>
> Well, then we just have to add more info to --help
>
it can be solution
Pavel
>
> Regards,
>
> --
> Fabrízio de Royes Mello
> Consultoria/Coaching PostgreSQL
> >> Timbira: http://www.timbira.com.br
> >> Blog sobre TI: http://fabriziomello.blogspot.com
> >> Perfil Linkedin: http://br.linkedin.com/in/fabriziomello
> >> Twitter: http://twitter.com/fabriziomello
>
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2014-02-28 18:31:00 | Re: patch: option --if-exists for pg_dump |
Previous Message | Fabrízio de Royes Mello | 2014-02-28 18:25:49 | Re: proposal: new long psql parameter --on-error-stop |