pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: vishnupalani19@gmail.com
Subject: Clarification on SET SESSION AUTHORIZATION Syntax
Date: Thu, 12 Nov 2026 06:51:26 +0000
Message-ID: <179446628655.706202.828157255286601648@wrigleys.postgresql.org> (raw)

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.







view thread (6+ messages)  latest in thread

Message-ID: <179446628655.706202.828157255286601648@wrigleys.postgresql.org>
Permalink:  ../179446628655.706202.828157255286601648@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/179446628655.706202.828157255286601648@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, vishnupalani19@gmail.com
  Subject: Re: Clarification on SET SESSION AUTHORIZATION Syntax
  In-Reply-To: <179446628655.706202.828157255286601648@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox