From: | Corey Huinker <corey(dot)huinker(at)gmail(dot)com> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>, PostgreSQL <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: PSQL commands: \quit_if, \quit_unless |
Date: | 2016-11-28 21:27:38 |
Message-ID: | CADkLM=eF-269H=k_UGGQ6xCEcECr+PV+Cq_49vBdLHJCZj_HWA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
>
>
> As far as the original problem goes, I wonder whether what you really
>> want isn't a \quit command that lets you specify psql's exit code.
>>
>
>
The ability to specify an exit code was part of the brainstorming, yes. But
with it was the ability to conditionally quit.
> Actually, I'm seeing this as basically an assertion capability and maybe
> should be named as such
>
> \assert_is
> \assert_isnot
>
That came up too! I see real value in the ability to test for error
conditions. I just had a more immediate need for a non-error exit condition.
From | Date | Subject | |
---|---|---|---|
Next Message | Petr Jelinek | 2016-11-28 21:41:51 | Re: Tackling JsonPath support |
Previous Message | David G. Johnston | 2016-11-28 21:23:07 | Re: PSQL commands: \quit_if, \quit_unless |