Re: Fwd: [NOVICE] Trigger and Recursive Relation ? - Mailing list pgsql-bugs

From Nikolay Samokhvalov
Subject Re: Fwd: [NOVICE] Trigger and Recursive Relation ?
Date
Msg-id e431ff4c0608021406n2514b28ctcb9a3abffec0d3c@mail.gmail.com
Whole thread Raw
In response to Re: Fwd: [NOVICE] Trigger and Recursive Relation ?  ("Nikolay Samokhvalov" <samokhvalov@gmail.com>)
Responses Re: Fwd: [NOVICE] Trigger and Recursive Relation ?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On 8/2/06, Nikolay Samokhvalov <samokhvalov@gmail.com> wrote:
> Does Postgres work  this way? In the case of 'delete from tbl;' we
> have search condition>=TRUE for all rows. If we evaluate it *before*
> any other operation, we should mark  all rows to be deleted. I guess,
> Postgres doesn't follow this logic..

My assumption: Postgres takes one row, marks it as deleted, then
executes trigger and updates another row. Due to MVCC new version of
that row is created and in the following iteration Postgres simply
doesn't "see" this row...

I don't understand how this can be called "not bug"... Please, help me
understand it :-)

--
Best regards,
Nikolay

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #2561: Manual is wrong: You can't grant a group to public
Next
From: Tom Lane
Date:
Subject: Re: Fwd: [NOVICE] Trigger and Recursive Relation ?