Old/New - Mailing list pgsql-general

From Bob Pawley
Subject Old/New
Date
Msg-id A7B0FFC861FD4380A747C656E9012E77@desktop
Whole thread Raw
Responses Re: Old/New  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hi
 
I am getting a strange result when using the following -

 Select fluid_id into fluidid
 from p_id.processes
 where new.pump1 = 'True'
 and old.pump1 = 'False'
  or old.pump1 is null;
 
The fluid_id return is fine when there is a single row. However with two rows, and updating only one of the rows, I quite often get the fluid_id for the other row.
 
I am using an After Update trigger.
 
Bob 

pgsql-general by date:

Previous
From: Kynn Jones
Date:
Subject: Re: ISO guidelines/strategies to guard injection attacks
Next
From: Tom Lane
Date:
Subject: Re: Old/New