Re: pl/pgsql: END verbosity

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: pl/pgsql: END verbosity
Дата
Msg-id 3601.24.211.165.134.1119409898.squirrel@www.dunslane.net
обсуждение исходный текст
Ответ на pl/pgsql: END verbosity  (Neil Conway <neilc@samurai.com>)
Ответы Re: pl/pgsql: END verbosity  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: pl/pgsql: END verbosity  (Neil Conway <neilc@samurai.com>)
Re: pl/pgsql: END verbosity  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Список pgsql-hackers
Neil Conway said:
> In PL/PgSQL, "END LOOP" is used to terminate loop blocks, and "END IF"
> is used to terminate IF blocks. This is needlessly verbose: we could
> simply accept "END" in both cases without syntactic ambiguity. I'd like
>  to make this change, so that END can be used to terminate any kind of
> block. There's no need to remove support for the present syntax, of
> course, so there's no backward compatibility concern. Oracle's PL/SQL
> does require "END IF" and "END LOOP", but folks interested in maximum
> compatibility can always use those forms if they like.
>
> Any objections?
>

I'm unkeen. I see no technical advantage - it's just a matter of taste. We
advertise that plpgsql is similar to plsql - we should not do anything to
make that less so IMNSHO. Terseness is not always good, redundancy is not
always bad.

cheers

andrew




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Problem with dblink regression test
Следующее
От: Rod Taylor
Дата:
Сообщение: Re: pg_terminate_backend idea