Re: plpgsql-trigger.html: Format TG_ variables as table (patch)

Christoph Berg <myon@debian.org>

From: Christoph Berg <myon@debian.org>
To: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Cc: Daniel Gustafsson <daniel@yesql.se>, Peter Eisentraut <peter.eisentraut@enterprisedb.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-09-01T13:07:03Z
Lists: pgsql-hackers

Attachments

Re: Dagfinn Ilmari Mannsåker
> > Actually, just omitting the whole prefix works best.
> >
> > TG_WHEN (text)
> >
> >     BEFORE, AFTER, or INSTEAD OF, depending on the trigger's definition.
> 
> The attached patch does not reflect this, did you attach an old version?

Forgot to git commit before exporting the patch, thanks for catching!

> > I also shortened some "name of table" to just "table". Since the data
> > type is "name", it's clear what "table" means.
> 
> I think it reads better with the definite article and initial capital,
> e.g. "The table that triggered ….".

Since that's not a complete sentence anyway, I think "The" isn't
necessary.

> > -     <term><varname>NEW</varname></term>
> > +     <term><varname>NEW</varname> (record)</term>
> 
> The type names should still be wrapped in <type>, like they were before.

Updated.

Thanks,
Christoph

Commits

  1. doc: Use more concise wording for pl/pgSQL TG_ variables