Re: Undocumented optionality of handler_statements

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, Philipp Salvisberg <philipp(dot)salvisberg(at)gmail(dot)com>, "pgsql-docs(at)lists(dot)postgresql(dot)org" <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: Re: Undocumented optionality of handler_statements
Date: 2024-10-16 22:45:51
Message-ID: CAKFQuwajwUO3aL6AdvSo66FKyE4UXhtAfOk2EwWAoSGj2=hpQg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Wednesday, October 16, 2024, Bruce Momjian <bruce(at)momjian(dot)us> wrote:

> On Wed, Sep 11, 2024 at 03:37:17PM +0900, Michael Paquier wrote:
> > On Tue, Jul 23, 2024 at 01:25:39PM +0200, Philipp Salvisberg wrote:
> > > read "optional" as "mandatory".
> >
> > They're optional, like in empty being optional. If not specified, the
> > block goes to its END.
> >
> > > Therefore, I suggest to change this example by adding a NULL
> > > statement as in other examples. This change would make the
> > > documentation consistent and handle the optionality of
> > > handler_statements as an implementation detail. I created a patch
> > > for plpgsql.sgml based on the master branch, adding a NULL statement
> > > in empty exception handlers (see attached file
> > > doc_patch_using_null_stmt_instead_of_empty_exception_handler_v1.diff).
> >
> > These examples have been around for 20 years with, and I think that it
> > is helpful to show this pattern as well. So if I were to do something
> > about that, I would suggest the attached.
>
> Do we want to apply this patch? I added a comma to the text, attached.
>

-1 for me.

This establishes a policy change for documenting an empty set of statements
without touching all places that would require changing to conform to the
new policy.

I’m weakly against changing the policy at this point; if we do the patch
needs to touch all relevant places.

David J.

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message David Rowley 2024-10-16 23:24:59 Re: A minor bug in doc. Hovering over heading shows # besides it.
Previous Message David G. Johnston 2024-10-16 22:37:32 A minor bug in doc. Hovering over heading shows # besides it.