Re: Passing an argument to a trigger function using tg_argv

Поиск
Список
Период
Сортировка
От Simon Connah
Тема Re: Passing an argument to a trigger function using tg_argv
Дата
Msg-id TOdB6vHa8r6oKU93K-P9OXsUasMhBk9iEbOaupTFjBETkPvSD4jn3Qy7ZVG73VLpcMUKu6NHUUHqFekcLC7bykpFdtZN9-XXo4BkKqL2lw8=@protonmail.com
обсуждение исходный текст
Ответ на Re: Passing an argument to a trigger function using tg_argv  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-novice

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, April 1st, 2021 at 06:25, David G. Johnston <david.g.johnston@gmail.com> wrote:

On Wednesday, March 31, 2021, Simon Connah <simon.n.connah@protonmail.com> wrote:
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐

Sorry if I am misunderstanding. I'm still pretty new to PostgreSQL but the column actually is a bigint (well technically a bigserial) which is why I am confused.




‘The arguments are literal string constants.“ 

A column reference is simply not possible since arguments can only be “literal string constants”.

David J.

Ah, I see. Anyway I managed to fix it with this code:


Thank you for your help!
Вложения

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Passing an argument to a trigger function using tg_argv
Следующее
От: Peter Wright
Дата:
Сообщение: Restricting certain users from accessing PUBLIC resources