Re: Trouble with NEW - Mailing list pgsql-general

From Alban Hertroys
Subject Re: Trouble with NEW
Date
Msg-id AE3B3277-15AE-4888-8FDE-411ED86377FB@gmail.com
Whole thread Raw
In response to Re: Trouble with NEW  ("Bob Pawley" <rjpawley@shaw.ca>)
List pgsql-general
On 19 Jul 2012, at 24:20, Bob Pawley wrote:

> When I substitute new.fluid_id for the actual fluid)id the expression returns the right value.
>
> Following is the table -
>
> CREATE TABLE p_id.fluids
> (
> p_id_id integer,
> fluid_id serial,

I think people meant the one on which the trigger fires ;)
This one can't (shouldn't) be it, or you would introduce in an infinite loop by calling update on the same table.

> On 07/18/2012 12:28 PM, Bob Pawley wrote:
>> It's an insert after trigger function.
>>
>> The table has a column named fluid_id.
>
> Can we see the table schema. What I am looking for is quoted column name
> that would preserve case.

Alban Hertroys

--
If you can't see the forest for the trees,
cut the trees and you'll find there is no forest.


pgsql-general by date:

Previous
From: Alexander Law
Date:
Subject: Re: [BUGS] main log encoding problem
Next
From: Alexander Law
Date:
Subject: Re: main log encoding problem