pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: philipp.salvisberg@gmail.com
To: pgsql-docs@lists.postgresql.org
Subject: Re: Undocumented optionality of handler_statements
Date: Tue, 23 Jul 2024 08:39:20 +0900
Message-ID: <Zp7tqLSTbBaBTUlP@paquier.xyz> (raw)
In-Reply-To: <172165655256.710.2097726158572647813@wrigleys.postgresql.org>
References: <172165655256.710.2097726158572647813@wrigleys.postgresql.org>

On Mon, Jul 22, 2024 at 01:55:52PM +0000, PG Doc comments form wrote:
> In
> https://www.postgresql.org/docs/16/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING
> handler_statements are documented as optional.
> 
> However, the following example shows that handler_statements can be omitted.

You have a good point.  This could be clarified better in the
documentation by making handler_statements conditional with square
brackets around it.  I'd rather add an extra sentence to tell that not
specifying handler_statements is equivalent to taking no action.

Perhaps you would like to write a patch?
--
Michael

Attachments:

  [application/pgp-signature] signature.asc (832B, ../Zp7tqLSTbBaBTUlP@paquier.xyz/2-signature.asc)
  download

view thread (9+ messages)  latest in thread

Message-ID: <Zp7tqLSTbBaBTUlP@paquier.xyz>
Permalink:  ../Zp7tqLSTbBaBTUlP@paquier.xyz/
Also on:    postgresql.org/message-id/Zp7tqLSTbBaBTUlP@paquier.xyz

 · 

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: michael@paquier.xyz, philipp.salvisberg@gmail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: Undocumented optionality of handler_statements
  In-Reply-To: <Zp7tqLSTbBaBTUlP@paquier.xyz>

* 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