Re: SESSION SESSION - bug or intentional?

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: SESSION SESSION - bug or intentional?
Дата
Msg-id CAKFQuwby6UOxRayoKELxQi_vzDhtqf2YZge-0=ufa1oJxs0KPg@mail.gmail.com
обсуждение исходный текст
Ответ на SESSION SESSION - bug or intentional?  (Joe Conway <mail@joeconway.com>)
Ответы Re: SESSION SESSION - bug or intentional?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, Sep 30, 2015 at 2:52 PM, Joe Conway <mail@joeconway.com> wrote:
I was looking at something in gram.y when I noticed that the following
production works:


SET SESSION SESSION CHARACTERISTICS AS TRANSACTION READ ONLY;


"SESSION SESSION" seems fairly odd -- is it intentional?

​Scanning the SET and SET TRANSACTION it doesn't appear to be something they are documented as allowing.

However, SET SESSION AUTHORIZATION is defined as thus:

SET [ SESSION | LOCAL ] SESSION AUTHORIZATION user_name

​which implies that we don't ​take pains to avoid it.  Since:

"The SESSION and LOCAL modifiers are a PostgreSQL extension, as is the RESET syntax."

The standard doesn't have any undue influence on our particular decision.

David J.


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

Предыдущее
От: Joe Conway
Дата:
Сообщение: SESSION SESSION - bug or intentional?
Следующее
От: Paul Ramsey
Дата:
Сообщение: Re: [PATCH] postgres_fdw extension support