Re: why semicolon after begin is not allowed in postgresql?

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: why semicolon after begin is not allowed in postgresql?
Дата
Msg-id 5293DE05.8040904@dunslane.net
обсуждение исходный текст
Ответ на Re: why semicolon after begin is not allowed in postgresql?  (David Johnston <polobo@yahoo.com>)
Ответы Re: why semicolon after begin is not allowed in postgresql?  (David Johnston <polobo@yahoo.com>)
Список pgsql-hackers
On 11/25/2013 06:13 PM, David Johnston wrote:


>
> A side observation: why does "DECLARE" not require a block-end keyword but
> instead "BEGIN" acts as effectively both start and end?  BEGIN, IF, FOR,
> etc... all come in pairs but DECLARE does not.
>
>


A complete block is:
    [ DECLARE declarations ]    BEGIN statements    [ EXCEPTIONS handlers ]    END

The declare and exceptions parts are optional, as indicated. Does that 
make it clearer?


cheers

andrew



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

Предыдущее
От: David Johnston
Дата:
Сообщение: Re: why semicolon after begin is not allowed in postgresql?
Следующее
От: David Johnston
Дата:
Сообщение: Re: why semicolon after begin is not allowed in postgresql?