Re: Please make a note regarding the PL/pgSQL FOUND variable

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Please make a note regarding the PL/pgSQL FOUND variable
Дата
Msg-id 3475325.1699110971@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Please make a note regarding the PL/pgSQL FOUND variable  (PG Doc comments form <noreply@postgresql.org>)
Ответы Re: Please make a note regarding the PL/pgSQL FOUND variable  (Thomas Trias <tomtrias@gmail.com>)
Список pgsql-docs
PG Doc comments form <noreply@postgresql.org> writes:
> Since I was recently bitten by the fact that CREATE TABLE AS doesn't set the
> PL/pgSQL variable FOUND, it would be nice if that were explicitly noted in
> the documentation.  Alternatively, if it COULD set the FOUND variable, that
> would be great, although I realize the difficulty of that when coupled with
> IF NOT EXISTS.

The documentation of FOUND is already quite explicit about which kinds
of statements set it:

https://www.postgresql.org/docs/current/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICS

I'm disinclined to put notes about PL/pgSQL features into command
reference pages that have nothing to do with PL/pgSQL.

            regards, tom lane



В списке pgsql-docs по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Usage instructions for pg_hba.conf file
Следующее
От: Thomas Trias
Дата:
Сообщение: Re: Please make a note regarding the PL/pgSQL FOUND variable