Re: feature request for Postgresql Rule system. - Mailing list pgsql-general

From Tom Lane
Subject Re: feature request for Postgresql Rule system.
Date
Msg-id 16730.1166509545@sss.pgh.pa.us
Whole thread Raw
In response to Re: feature request for Postgresql Rule system.  (Richard Broersma Jr <rabroersma@yahoo.com>)
Responses Re: feature request for Postgresql Rule system.  (Richard Broersma Jr <rabroersma@yahoo.com>)
List pgsql-general
Richard Broersma Jr <rabroersma@yahoo.com> writes:
> My concern regarding the rule system is not related to the incorrect
> update count but the fact that my update statement was suppose to
> change BOTH name AND dresssize. However, as you see only the name was
> changed, dresssize remains unchanged.  Therefore, I assumed that the
> update statement was not completed "atomically".

At no point did you show us details, but I suppose that this rule is
relying on a join view?  Once you update one side of the join with a
different join key value, the join row in question no longer exists in
the view ... so the second update doesn't find a row to update.  This
has nothing to do with ACID.

            regards, tom lane

pgsql-general by date:

Previous
From: Henrik Zagerholm
Date:
Subject: Re: Let's play bash the search engine
Next
From: Tom Lane
Date:
Subject: Re: Second attempt, roll your own autovacuum