From: Richard Huxton <richardh@archonet.com>
To: Terence Kearns <terencek@isd.canberra.edu.au>
To: Richard Huxton <dev@archonet.com>
Cc: Terence Kearns <terencek@isd.canberra.edu.au>
Cc: pgsql-sql@postgresql.org
Subject: Re: (trigger function) -> ERROR: NEW used in non-rule query
Date: Fri, 18 Jul 2003 14:06:00 +0100
Message-ID: <200307181406.00852.richardh@archonet.com> (raw)
In-Reply-To: <3F17BB5C.4020803@cts.canberra.edu.au>
References: <3F17AE38.5020302@cts.canberra.edu.au>
<200307181003.42279.dev@archonet.com>
<3F17BB5C.4020803@cts.canberra.edu.au>
On Friday 18 July 2003 10:18, Terence Kearns wrote:
> damn. There's realy no other way for me to access the value since the
> trigger function will be called from different relations.
>
> I tried idval := (''NEW.'' || TG_ARGV[3]); but recieved
> ERROR: pf_atoi: error in "NEW.blah": can't parse "NEW.blah"
>
> Oh well, can't win them all :/
Well, not this one at the moment, anyway.
> Well I suppose I could try TCL. The problem is that there is little to
> no documentation on postgres stored procedures in TCL and I've never
> even seen the language before. None the less, I'll look into it. It's
> almost worth it. If that fails, I may even try perl <shudders>. if that
> files, I will try to get --with-python to configure (which it's refusing
> to do at the moment even though I have a working installation).
Not sure if you can write triggers in perl, and I think python is going
untrusted only (which means you need to be an admin to create functions).
- Richard Huxton
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: richardh@archonet.com, terencek@isd.canberra.edu.au, dev@archonet.com
Subject: Re: (trigger function) -> ERROR: NEW used in non-rule query
In-Reply-To: <200307181406.00852.richardh@archonet.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