Re: \if, \elseif, \else, \endif (was Re: PSQL commands: \quit_if, \quit_unless)

From: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: PostgreSQL <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: \if, \elseif, \else, \endif (was Re: PSQL commands: \quit_if, \quit_unless)
Date: 2017-01-24 06:22:53
Message-ID: CADkLM=e=4Wi0Gs+sJ=NHw5A++Gay_wXk4ZYSrbgZ7-M52=utwg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
>
> As I understood it, the negative feeback was really about sh inspiration
> "if/fi", not about elif/elsif/elseif. I do not think that there was an
> expressed consensus about the later.
>

True

> The closest case is CPP with its line-oriented #-prefix syntax, and I
> still think that we should do it like that.

Given that the pl/pgsql syntax has a space between "end" and "if", I have
to agree. It's easy enough to change back if others can make a convincing
argument for something else.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jia Yu 2017-01-24 06:33:49 Re: IndexBuild Function call fcinfo cannot access memory
Previous Message Amit Kapila 2017-01-24 06:18:30 Re: pageinspect: Hash index support