Skip site navigation (1) Skip section navigation (2)

Re: cache problem (v2)

From: De Leeuw Guy <G(dot)De_Leeuw(at)eurofer(dot)be>
To: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: cache problem (v2)
Date: 2007-07-16 17:47:09
Message-ID: 469BAF1D.8030108@eurofer.be (view raw or flat)
Thread:
Lists: pgsql-admin
Hello Andrew,

Thanks for your attention

Andrew Sullivan a écrit :
> I tried to answer the previous version of this mail, but I don't
> understand it.  Let me see if my questions trigger something for you,
> though.
>   
> 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
> 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
>   
>> maybe this is because these commands start a transaction with a cache
>> and each time that I request a select for a sum code that are on the
>> cache the value returned are not the real new value.
>>     
>
> No, but a trigger that executes SQL can cause the trigger to fire
> again.  Are you sure that's not happening?
>
>   

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

Regards

Guy


In response to

Responses

pgsql-admin by date

Next:From: Andrew SullivanDate: 2007-07-16 18:48:37
Subject: Re: cache problem (v2)
Previous:From: Andrew SullivanDate: 2007-07-16 17:09:57
Subject: Re: cache problem (v2)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group