Parameter passing in trigger function write in C

From: a <372660931(at)qq(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Parameter passing in trigger function write in C
Date: 2018-04-27 01:13:18
Message-ID: tencent_4CFDBC6111CA52570B4FBEF0@qq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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??

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2018-04-27 01:36:44 Re: Parameter passing in trigger function write in C
Previous Message Tom Lane 2018-04-26 23:04:49 Re: PGAdmin4 debugger - unable to call ltree functions