On Fri, Nov 13, 2026 at 12:32 AM David G. Johnston
<[email protected]> wrote:
>
> On Thursday, November 12, 2026, Matemática A3K <[email protected]> 
> wrote:
>>
>> After re-reading both, I wonder if a more appropriate syntax description is:
>> SET [ SESSION | LOCAL ] SESSION AUTHORIZATION { user_name |
>> 'user_name' | DEFAULT }
>> RESET SESSION AUTHORIZATION
>
>
> Yes, the difference there seems like a simple oversight.

Indeed! I tried changing the syntax to that and realized that I
couldn't rewrite the last paragraph of the description (woof! too
hard...). So, I only added the string literal referenced in the
description to the syntax.

Attaching the patch for completeness.

It makes sense to me to generate a bigger patch with all the patches
like this from time to time (let´s say, a month...), and commit it
with a subject like "doc: Monthly minor fixes".  This way, small fixes
can get their way into the doc.

Do you think it would get approved?

>
> David J.
>
diff --git a/doc/src/sgml/ref/set_session_auth.sgml b/doc/src/sgml/ref/set_session_auth.sgml
index 94adab2468d..e11065ce5e4 100644
--- a/doc/src/sgml/ref/set_session_auth.sgml
+++ b/doc/src/sgml/ref/set_session_auth.sgml
@@ -21,7 +21,7 @@ PostgreSQL documentation
 
  <refsynopsisdiv>
 <synopsis>
-SET [ SESSION | LOCAL ] SESSION AUTHORIZATION <replaceable class="parameter">user_name</replaceable>
+SET [ SESSION | LOCAL ] SESSION AUTHORIZATION {<replaceable class="parameter">user_name</replaceable> | '<replaceable class="parameter">user_name</replaceable>'}
 SET [ SESSION | LOCAL ] SESSION AUTHORIZATION DEFAULT
 RESET SESSION AUTHORIZATION
 </synopsis>

Reply via email to