Re: NEW used in a query that is not in a rule - Mailing list pgsql-hackers

From Gaetano Mendola
Subject Re: NEW used in a query that is not in a rule
Date
Msg-id 4147692F.6000304@bigfoot.com
Whole thread Raw
In response to Re: NEW used in a query that is not in a rule  (Oliver Elphick <olly@lfix.co.uk>)
List pgsql-hackers
Oliver Elphick wrote:

> 
>> My guess is that you are having this problem because you are executing a
>> query referring to NEW rather than using it directly. 

This for sure, I'm able to use NEW directly but I don't know at definition
time wich field of NEW I have to use.

>> I don't think you can refer to NEW in a command string given to
>> EXECUTE.  You probably need to set up an IF...ELSIF...ELSE...END IF
>> structure to get the value to put into the command string.

I can't because the combination are not a limited number.





Regards
Gaetano Mendola



pgsql-hackers by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: APR 1.0 released
Next
From: Neil Conway
Date:
Subject: assertion failure w/ valgrind