Re: Parameter passing in trigger function write in C
От | a |
---|---|
Тема | Re: Parameter passing in trigger function write in C |
Дата | |
Msg-id | tencent_62F544BE04311F2C015921EB@qq.com обсуждение исходный текст |
Ответ на | Re: Parameter passing in trigger function write in C (Adrian Klaver <adrian.klaver@aklaver.com>) |
Ответы |
Re: Parameter passing in trigger function write in C
|
Список | pgsql-general |
Yep, I wanna pass the brief reason of manipulating(update, insert or delete), name and password of the manipulator (This might be done by database itself).
On 04/26/2018 06:48 PM, a wrote:
> hey thanks mate, I have red that. But the actual data retirement seems
> to be combination of that and the SPI_get* functions. I'm still testing
> on it. By the way, if I can pass parameters that is out of the scope of
> sql statement??
Can you be more specific about what parameters you are looking to pass in?
>
>
> ------------------ Original ------------------
> *From:* "Adrian Klaver";
> *Date:* Friday, Apr 27, 2018 9:36 AM
> *To:* "a"<372660931@qq .com>; "pgsql-general";
> *Subject:* Re: Parameter passing in trigger function write in C
>
> On 04/26/2018 06:13 PM, a wrote:
> > Hey everyone:
> >
> > I was request to write a trigger that perform the following function:
> >
> > 1, The trigger will be set to exam all statement that will result change
> > of datas
> >
> > 2, The trigger will exam three information other than the data updated
> > or inserted: user name, password and reasons of change
> >
> > 3, It will record down, in some format, the time and content of the
> change.
> >
> > Therefore, I would need some way of passing parameters into the trigger
> > function. Can anyone give me some instructions on how to do it or, if it
> > is possible??
>
> https://www. postgresql.o rg/docs/10/s tatic/trigge r-interface. html
> <https://www. postgresql.o rg/docs/10/s tatic/trigge r-interface. html>;
>
>
> --
> Adrian Klaver
> adrian.klave r@aklaver.co m <mailto:adrian.klave r@aklaver.co m>
--
Adrian Klaver
adrian.klave r@aklaver.co m
------------------ Original ------------------
From: "Adrian Klaver";
Date: Friday, Apr 27, 2018 10:16 PM
To: "a"<372660931@qq.com>; "pgsql-general";
Subject: Re: Parameter passing in trigger function write in C
> hey thanks mate, I have red that. But the actual data retirement seems
> to be combination of that and the SPI_get* functions. I'm still testing
> on it. By the way, if I can pass parameters that is out of the scope of
> sql statement??
Can you be more specific about what parameters you are looking to pass in?
>
>
> ------------------ Original ------------------
> *From:* "Adrian Klaver";
> *Date:* Friday, Apr 27, 2018 9:36 AM
> *To:* "a"<372660931@qq
> *Subject:* Re: Parameter passing in trigger function write in C
>
> On 04/26/2018 06:13 PM, a wrote:
> > Hey everyone:
> >
> > I was request to write a trigger that perform the following function:
> >
> > 1, The trigger will be set to exam all statement that will result change
> > of datas
> >
> > 2, The trigger will exam three information other than the data updated
> > or inserted: user name, password and reasons of change
> >
> > 3, It will record down, in some format, the time and content of the
> change.
> >
> > Therefore, I would need some way of passing parameters into the trigger
> > function. Can anyone give me some instructions on how to do it or, if it
> > is possible??
>
> https://www.
> <https://www.
>
>
> --
> Adrian Klaver
> adrian.klave
--
Adrian Klaver
adrian.klave
В списке pgsql-general по дате отправления: