| From: | PG Doc comments form <noreply(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-docs(at)lists(dot)postgresql(dot)org |
| Cc: | vishnupalani19(at)gmail(dot)com |
| Subject: | Clarification on SET SESSION AUTHORIZATION Syntax |
| Date: | 2026-11-12 06:51:26 |
| Message-ID: | 179446628655.706202.828157255286601648@wrigleys.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-docs |
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/18/sql-set-session-authorization.html
Description:
Hi Team,
In the `SET SESSION AUTHORIZATION` statement, the syntax is defined as:
```sql
SET [ SESSION | LOCAL ] SESSION AUTHORIZATION user_name;
```
I would like to clarify whether the following query is valid:
```sql
SET SESSION SESSION AUTHORIZATION user_name;
```
Since `SESSION` and `LOCAL` are optional alternatives in the syntax, does
the first `SESSION` keyword allow the query to contain two consecutive
`SESSION` keywords?
If this syntax is not valid, should we update the grammar to the following?
```sql
SET [ LOCAL ] SESSION AUTHORIZATION user_name;
```
Please clarify the expected syntax so that we can update the grammar
accordingly.
Thanks.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Xavier Fischer | 2026-11-12 07:33:12 | RE: Introductory docs-hacking task: Example markup |
| Previous Message | David G. Johnston | 2026-11-12 02:56:05 | Re: Introductory docs-hacking task: Example markup |