"David G. Johnston" <david.g.johns...@gmail.com> writes:
> On Wed, Sep 30, 2015 at 2:52 PM, Joe Conway <m...@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?

> However, SET SESSION AUTHORIZATION is defined as thus:
> SET [ SESSION | LOCAL ] SESSION AUTHORIZATION user_name

Yeah.  SET LOCAL SESSION AUTHORIZATION is valid and useful.  The optional
SESSION is just a noise word here, but disallowing it would be
non-orthogonal compared to other similar syntaxes.

                        regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to