Re: Odd behavior observed - Mailing list pgsql-general

From Tom Lane
Subject Re: Odd behavior observed
Date
Msg-id 9014.1158687487@sss.pgh.pa.us
Whole thread Raw
In response to Re: Odd behavior observed  (Marc Evans <Marc@SoftwareHackery.Com>)
Responses Re: Odd behavior observed  (Marc Evans <Marc@SoftwareHackery.Com>)
Re: Odd behavior observed  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Marc Evans <Marc@SoftwareHackery.Com> writes:
> On Tue, 19 Sep 2006, Tom Lane wrote:
>> Hmph.  You got any ON INSERT triggers or rules on that table?  I can't
>> think of anything else that would interfere with data getting stored.

> No INSERT triggers. I do have a BEFORE DELETE trigger, and a pile of
> FOREIGN KEY items (which work kinda like an INSERT trigger).

Hard to see how those could be related --- but it's even harder to
credit that the INSERT would get past the parser with an explicit
reference to the new column and then not store it.  I think maybe
something is applying an UPDATE to the row and losing the new value
at that point.  Are any of the FKs non-default actions (ON ... SET NULL
or some such that would try to alter data instead of just erroring)?
Also, can you check the cmin field of that row and see if it's greater
than zero?

            regards, tom lane

pgsql-general by date:

Previous
From: "Brandon Aiken"
Date:
Subject: Re: vista
Next
From: Marc Evans
Date:
Subject: Re: Odd behavior observed