Re: Typo in PL/pgSQL trigger Example 43.4?

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Typo in PL/pgSQL trigger Example 43.4?
Дата
Msg-id CAKFQuwZW2qTAavt8R1c20wW_OOn9YZ9Eoz4oc8jy3+Y2en0keQ@mail.gmail.com
обсуждение исходный текст
Ответ на Typo in PL/pgSQL trigger Example 43.4?  (Kirk Parker <khp@equatoria.us>)
Ответы Re: Typo in PL/pgSQL trigger Example 43.4?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-docs
On Sat, Oct 7, 2023 at 11:11 AM Kirk Parker <khp@equatoria.us> wrote:
 
            INSERT INTO emp_audit SELECT 'D', now(), user, OLD.*; -- <= ARGUMENT IN QUESTION
 The emp_audit table has a column named 'userid', which in actual usage (next-to-last line quoted) is populated by 'user' which seems undefined in the context.  Was that intended to be 'current_user', or am I missing something?

user is a valid pseudo-function:


David J.

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

Предыдущее
От: Kirk Parker
Дата:
Сообщение: Typo in PL/pgSQL trigger Example 43.4?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Typo in PL/pgSQL trigger Example 43.4?