Re: cache problem (v2) - Mailing list pgsql-admin

From Andrew Sullivan
Subject Re: cache problem (v2)
Date
Msg-id 20070716184837.GB18049@phlogiston.dyndns.org
Whole thread Raw
In response to Re: cache problem (v2)  (De Leeuw Guy <G.De_Leeuw@eurofer.be>)
Responses Re: cache problem (v2)
List pgsql-admin
On Mon, Jul 16, 2007 at 07:47:09PM +0200, De Leeuw Guy wrote:
> >
> > So if I am reading you correctly, IF code IN (1,2) THEN {do
> > something}?  What do you do then?  I don't get this part.
> >
> I record a row with code = 3 and the value = the sum of each values in
> code 1 & 2

This is also opaque to me now, because that doesn't seem to be what
your example said.  Perhaps you should post your function body?

> > I don't see how this is possible either.  You just deleted from test;
> > how can you hae anything left in there?
> >
> I skip the delete action when the code is a sum code

Well, that's not what your example said either.  You need to show us
actually what you are doing, rather than describing it in terms that
leave out significant parts.

> Yes I test this situation on my trigger.
> I sure about 99% that my problem come from the cache.

There is nothing in the cache that isn't "in the database", as it
were, but there are visibility rules that might be affecting you.

A

--
Andrew Sullivan  | ajs@crankycanuck.ca
When my information changes, I alter my conclusions.  What do you do sir?
        --attr. John Maynard Keynes

pgsql-admin by date:

Previous
From: De Leeuw Guy
Date:
Subject: Re: cache problem (v2)
Next
From: "Mark Steben"
Date:
Subject: Index on a COALESCE function