Обсуждение: Wrong 'Special local variables PG_' prefix in 'Trigger procedures'section

Поиск
Список
Период
Сортировка

Wrong 'Special local variables PG_' prefix in 'Trigger procedures'section

От
PG Doc comments form
Дата:
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/10/static/plpgsql-trigger.html
Description:

The documentation (10 and 9.6) contains a typo when mentioning 'Special
local variables PG_something'. Instead it should be 'Special local variables
TG_something' as it is for trigger local variables.

Examples just below all start with TG_ so it should be obvious.


Re: Wrong 'Special local variables PG_' prefix in 'Trigger procedures' section

От
Tom Lane
Дата:
=?utf-8?q?PG_Doc_comments_form?= <noreply@postgresql.org> writes:
> Page: https://www.postgresql.org/docs/10/static/plpgsql-trigger.html

> The documentation (10 and 9.6) contains a typo when mentioning 'Special
> local variables PG_something'. Instead it should be 'Special local variables
> TG_something' as it is for trigger local variables.

Ugh, yeah, that's a thinko isn't it.  Will fix, thanks for noticing!

            regards, tom lane