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

Christoph Berg <myon@debian.org>

From: Christoph Berg <myon@debian.org>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-08-31T12:18:26Z
Lists: pgsql-hackers

Attachments

Re: Daniel Gustafsson
> This, and the other string variables, now reads a bit strange IMO:
> 
> -       Data type <type>text</type>; a string of
> +       string
>         <literal>INSERT</literal>, <literal>UPDATE</literal>,
>         <literal>DELETE</literal>, or <literal>TRUNCATE</literal>
> 
> Wouldn't it be better with "string containing <literal>INSERT.." or something
> similar?

Right, that felt strange to me as well, but I couldn't think of
something better.

"string containing" is again pretty boilerplatish, how about just
"contains"?

Christoph

Commits

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