Re: PSQL commands: \quit_if, \quit_unless - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: PSQL commands: \quit_if, \quit_unless
Date
Msg-id 120a3388-d284-4dad-9119-c1dd61dabb4a@dunslane.net
Whole thread Raw
In response to Re: PSQL commands: \quit_if, \quit_unless  (David Steele <david@pgmasters.net>)
List pgsql-hackers

On 11/29/2016 05:25 PM, David Steele wrote:
> On 11/29/16 5:08 PM, Andrew Dunstan wrote:
>> On 11/29/2016 03:07 PM, Fabien COELHO wrote:
>>>
>>> I cannot remember a language with elseif* variants, and I find them
>>> quite ugly, so from an aethetical point of view I would prefer to
>>> avoid that... On the other hand having an "else if" capability makes
>>> sense (eg do something slightly different for various versions of pg),
>>> so that would suggest to stick to a simpler "if" without variants, if
>>> possible.
>> FTR I *strongly* disagree with this. (And if you can't remember a
>> language that comes with them then you need to get out more. The Bourne
>> shell, where it's spelled "elif", and Ada are two obvious examples.)
> Not to mention PL/pgSQL and Perl.
>


Indeed.

cheers

andrew




pgsql-hackers by date:

Previous
From: David Steele
Date:
Subject: Re: PSQL commands: \quit_if, \quit_unless
Next
From: "Okano, Naoki"
Date:
Subject: Re: pg_recvlogical --endpos