From: KÖPFERL Robert <robert.koepferl@sonorys.at>
Cc: pgsql-sql@postgresql.org
Subject: Re: Constraint doesn't see a currently insertet record
Date: Tue, 15 Feb 2005 13:40:54 +0100
Message-ID: <ED4E30DD9C43D5118DFB00508BBBA76EB165C7@neptun.sonorys.at> (raw)
Thanks.
I managed it via a trigger.
> -----Original Message-----
> From: Michael Fuhr [mailto:mike@fuhr.org]
> Sent: Sonntag, 13. Februar 2005 02:57
> To: KÖPFERL Robert
> Cc: pgsql-sql@postgresql.org
> Subject: Re: [SQL] Constraint doesn't see a currently insertet record
>
>
> 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/
>
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-sql@postgresql.org
Cc: robert.koepferl@sonorys.at
Subject: Re: Constraint doesn't see a currently insertet record
In-Reply-To: <ED4E30DD9C43D5118DFB00508BBBA76EB165C7@neptun.sonorys.at>
References: <ED4E30DD9C43D5118DFB00508BBBA76EB165C7@neptun.sonorys.at>
* 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