pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: a <372660931@qq.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Parameter passing in trigger function write in C
Date: Fri, 27 Apr 2018 09:48:21 +0800
Message-ID: <tencent_71ACE0081C5EA70E6511B158@qq.com> (raw)
In-Reply-To: <2b430e72-4278-3ab5-76c3-90a33c091764@aklaver.com>
References: <tencent_4CFDBC6111CA52570B4FBEF0@qq.com>
	<2b430e72-4278-3ab5-76c3-90a33c091764@aklaver.com>

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




------------------ 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.org/docs/10/static/trigger-interface.html


-- 
Adrian Klaver
adrian.klaver@aklaver.com

view thread (7+ messages)  latest in thread

Message-ID: <tencent_71ACE0081C5EA70E6511B158@qq.com>
Permalink:  ../tencent_71ACE0081C5EA70E6511B158@qq.com/
Also on:    postgresql.org/message-id/tencent_71ACE0081C5EA70E6511B158@qq.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: 372660931@qq.com, adrian.klaver@aklaver.com
  Subject: Re: Parameter passing in trigger function write in C
  In-Reply-To: <tencent_71ACE0081C5EA70E6511B158@qq.com>
  References: <tencent_4CFDBC6111CA52570B4FBEF0@qq.com> <2b430e72-4278-3ab5-76c3-90a33c091764@aklaver.com> <tencent_71ACE0081C5EA70E6511B158@qq.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox