Re: Rule updates and PQcmdstatus() issue - Mailing list pgsql-hackers

From Zeugswetter Andreas SB SD
Subject Re: Rule updates and PQcmdstatus() issue
Date
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA4961E79@m0114.s-mxs.net
Whole thread Raw
In response to Rule updates and PQcmdstatus() issue  (Steve Howe <howe@carcass.dhs.org>)
List pgsql-hackers
> could you please make a complete table of all
> possible situations and the expected returns? With complete I mean
> including all combinations of rules, triggers, deferred constraints and
> the like. Or do you at least see now where in the discussion we got
> stuck?

Imho only view rules (== instead rules) should affect the returned info.
Not "non instead" rules, triggers or constraints. Those are imho supposed to
be transparent as long as they don't abort the statement.

Especially for triggers and constraints there is no room for flexibility,
since other db's also don't modify the "affected rows" count for these.
Think sqlca.sqlerrd[2] /* number of rows processed */!

Andreas


pgsql-hackers by date:

Previous
From: Jan Wieck
Date:
Subject: Re: Map of developers
Next
From: Tom Lane
Date:
Subject: Re: Script to compute randon page cost