Spurious curly bracket in "CREATE FUNCTION"/"CREATE PROCEDURE" doc - Mailing list pgsql-bugs

From Lele Gaifax
Subject Spurious curly bracket in "CREATE FUNCTION"/"CREATE PROCEDURE" doc
Date
Msg-id 87bj98oaen.fsf@metapensiero.it
Whole thread
Responses Re: Spurious curly bracket in "CREATE FUNCTION"/"CREATE PROCEDURE" doc
List pgsql-bugs
Hi all,

I think I spotted two minor glitches in the documentation for both
"CREATE FUNCTION" and "CREATE PROCEDURE" doc pages.

The detailed entry for the "TRANSFORM" option in their "Parameters"
section (not the "Synopsis" one), has a trailing "}" that I think it is
spurious. It currently shows

  TRANSFORM { FOR TYPE type_name } [, ... ] }

    Lists which transforms a call to the function should apply...

I can see the same "problem" (assuming it is not me misreading the
syntax) in all versions of the pages (that is, from v14 to "current"
version of PG) visible at https://www.postgresql.org/docs/.

If I am right, the following patch against current master would fix
the problem:

diff --git a/doc/src/sgml/ref/create_function.sgml b/doc/src/sgml/ref/create_function.sgml
index 91148af012d..8e7f4aa08b6 100644
--- a/doc/src/sgml/ref/create_function.sgml
+++ b/doc/src/sgml/ref/create_function.sgml
@@ -273,7 +273,7 @@ CREATE [ OR REPLACE ] FUNCTION
     </varlistentry>
 
     <varlistentry>
-     <term><literal>TRANSFORM { FOR TYPE <replaceable class="parameter">type_name</replaceable> } [, ... ]
}</literal></term>
+     <term><literal>TRANSFORM { FOR TYPE <replaceable class="parameter">type_name</replaceable> } [, ...
]</literal></term>
 
      <listitem>
       <para>
diff --git a/doc/src/sgml/ref/create_procedure.sgml b/doc/src/sgml/ref/create_procedure.sgml
index 03a14c86845..2cda4876b59 100644
--- a/doc/src/sgml/ref/create_procedure.sgml
+++ b/doc/src/sgml/ref/create_procedure.sgml
@@ -177,7 +177,7 @@ CREATE [ OR REPLACE ] PROCEDURE
     </varlistentry>
 
     <varlistentry>
-     <term><literal>TRANSFORM { FOR TYPE <replaceable class="parameter">type_name</replaceable> } [, ... ]
}</literal></term>
+     <term><literal>TRANSFORM { FOR TYPE <replaceable class="parameter">type_name</replaceable> } [, ...
]</literal></term>
 
      <listitem>
       <para>

All the best,
bye, lele.
-- 
nickname: Lele Gaifax | Seeing Emacs as an editor is like seeing a car
real: Emanuele Gaifas | as a seating-accomodation.
lele@metapensiero.it  |                           -- Karl Voit



pgsql-bugs by date:

Previous
From: Rahul
Date:
Subject: Re: BUG #17545: Incorrect selectivity for IS NOT DISTINCT FROM and NULLs
Next
From: Andrey Borodin
Date:
Subject: Re: BUG #19738: `uuidv7(interval)` rejects sub-millisecond timestamps within the final 48-bit millisecond