Re: Proposal: Solving the "Return proper effected tuple - Mailing list pgsql-hackers

From Zeugswetter Andreas SB SD
Subject Re: Proposal: Solving the "Return proper effected tuple
Date
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA4961E7C@m0114.s-mxs.net
Whole thread Raw
List pgsql-hackers
> Oh, this is bad news.  The problem we have is that rules don't
> distinguish the UPDATE on the underlying tables of the rule from other
> updates that may appear in the query.
>
> If we go with Tom's idea and total just UPDATE's, we will get the right
> answer when there is only one UPDATE in the ruleset.

As long as the rules don't overlap (1 row is handled by 1 instead statement,
another row by a different one), it is ok. Again, you can create "non instead"
rules or triggers for the other work needed.
I am still in favor of not distinguishing the different tags. The dba needs to
take responsibility anyway (as long as we don't autogenerate the rules for simple
cases).

Andreas


pgsql-hackers by date:

Previous
From: Karel Zak
Date:
Subject: Re: PREPARE code notes
Next
From: Hannu Krosing
Date:
Subject: Re: Rule updates and PQcmdstatus() issue