Re: PSQL commands: \quit_if, \quit_unless
От | Andrew Dunstan |
---|---|
Тема | Re: PSQL commands: \quit_if, \quit_unless |
Дата | |
Msg-id | 896ed152-1925-d78a-ed14-10e3df03be94@dunslane.net обсуждение исходный текст |
Ответ на | Re: PSQL commands: \quit_if, \quit_unless (Fabien COELHO <coelho@cri.ensmp.fr>) |
Ответы |
Re: PSQL commands: \quit_if, \quit_unless
Re: PSQL commands: \quit_if, \quit_unless |
Список | pgsql-hackers |
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.) cheers andrew
В списке pgsql-hackers по дате отправления: