pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: KÖPFERL Robert <robert.koepferl@sonorys.at>
Cc: pgsql-sql@postgresql.org
Subject: Re: Constraint doesn't see a currently insertet record
Date: Sat, 12 Feb 2005 18:57:07 -0700
Message-ID: <20050213015707.GA25192@winnie.fuhr.org> (raw)
In-Reply-To: <ED4E30DD9C43D5118DFB00508BBBA76EB165BE@neptun.sonorys.at>
References: <ED4E30DD9C43D5118DFB00508BBBA76EB165BE@neptun.sonorys.at>

On Fri, Feb 11, 2005 at 07:10:50PM +0100, KÖPFERL Robert wrote:

> Another Idea was to make a trigger. But BTW how do I access a trigger
> parameter if my trigger function must not have any parameter??????????

PL/pgSQL triggers can access arguments via TG_ARGV.

http://www.postgresql.org/docs/8.0/static/plpgsql-trigger.html

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/



view thread (3+ messages)  latest in thread

Message-ID: <20050213015707.GA25192@winnie.fuhr.org>
Permalink:  ../20050213015707.GA25192@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050213015707.GA25192@winnie.fuhr.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mike@fuhr.org, robert.koepferl@sonorys.at
  Subject: Re: Constraint doesn't see a currently insertet record
  In-Reply-To: <20050213015707.GA25192@winnie.fuhr.org>

* 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