From: De Leeuw Guy <G.De_Leeuw@eurofer.be>
To: Andrew Sullivan <ajs@crankycanuck.ca>
Cc: pgsql-admin@postgresql.org
Subject: Re: cache problem (v2)
Date: Mon, 16 Jul 2007 19:47:09 +0200
Message-ID: <469BAF1D.8030108@eurofer.be> (raw)
In-Reply-To: <20070716170957.GV18049@phlogiston.dyndns.org>
References: <469B4927.9030604@eurofer.be>
<20070716170957.GV18049@phlogiston.dyndns.org>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: G.De_Leeuw@eurofer.be, ajs@crankycanuck.ca
Subject: Re: cache problem (v2)
In-Reply-To: <469BAF1D.8030108@eurofer.be>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox