From: dpa-postgres@aegee.org
To: pgsql-bugs@postgresql.org
Subject: BUG #14258: Documentation pl/pgsql
Date: Mon, 18 Jul 2016 18:14:37 +0000
Message-ID: <20160718181437.1414.40802@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14258
Logged by: Dilian Palauzov
Email address: dpa-postgres@aegee.org
PostgreSQL version: 9.5.3
Operating system: any
Description:
Hello,
in doc/src/sgml/plpgsql.sgml please replace:
inline patch 1: doc/src/sgml/plpgsql.sgml (+0/-0 lines) download inline-1.patch--- a/doc/src/sgml/plpgsql.sgml+++ b/doc/src/sgml/plpgsql.sgml@@ -328,7 +328,7 @@ arow RECORD;<para>
The general syntax of a variable declaration is:
<synopsis>
-<replaceable>name</replaceable> <optional> CONSTANT </optional>
<replaceable>type</replaceable> <optional> COLLATE
<replaceable>collation_name</replaceable> </optional> <optional> NOT NULL
</optional> <optional> { DEFAULT | := | = }
<replaceable>expression</replaceable> </optional>;
+<replaceable>name</replaceable> <optional> CONSTANT </optional>
<replaceable>type</replaceable> <optional> COLLATE
<replaceable>collation_name</replaceable> </optional> <optional> <optional>
NOT NULL </optional>{ DEFAULT | := | = }
<replaceable>expression</replaceable> </optional>;
</synopsis>
The <literal>DEFAULT</> clause, if given, specifies the initial value
assigned
to the variable when the block is entered. If the <literal>DEFAULT</>
clause
because NOT NULL can be used only with {DEFAULT | := | =}. Keep in mind
that the mentioned line is so long, that it does not fit in the PDF/A4
documentation
(https://www.postgresql.org/files/documentation/pdf/9.5/postgresql-9.5-A4.pdf,
page 1063/1138).
For GET [CURRENT] DIAGNOSITCS (plpgsql.sgml, line 1441) the documentation
within pgpgsql.sgml is unclear, what is CURRENT supposed to do.
In <sect2 id="plpgsql-conditionals">, 1834 is written
IF ... THEN
CASE ... WHEN ... END CASE
More consistent would be to write IF ... THEN ... END IF
In Trigger Procedures, Triggers on Data Changes is stated, that the return
value of a row-level trigger is ignored. Does such a trigger have to
execute explicitly RETURN, contrary to functions returning void?
In the example afterwards "A PL/pgSQL Trigger Procedure For Auditing", in
process_emp_audit() as AFTER trigger, the comment states, that the return
value is ignored, but why does the function have four return statements
instead of just one?
In subsection "Triggers on Events" please replace "is called as a event
trigger" with "is called as AN event trigger".
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: dpa-postgres@aegee.org
Subject: Re: BUG #14258: Documentation pl/pgsql
In-Reply-To: <20160718181437.1414.40802@wrigleys.postgresql.org>
References: <20160718181437.1414.40802@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