Re: SESSION SESSION - bug or intentional? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: SESSION SESSION - bug or intentional?
Date
Msg-id 30149.1443649799@sss.pgh.pa.us
Whole thread Raw
In response to Re: SESSION SESSION - bug or intentional?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: SESSION SESSION - bug or intentional?  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-hackers
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> 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?

> 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



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: No Issue Tracker - Say it Ain't So!
Next
From: Christopher Browne
Date:
Subject: Re: No Issue Tracker - Say it Ain't So!