Re: Rule updates and PQcmdstatus() issue

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB SD
Тема Re: Rule updates and PQcmdstatus() issue
Дата
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA4961E79@m0114.s-mxs.net
обсуждение исходный текст
Ответ на Rule updates and PQcmdstatus() issue  (Steve Howe <howe@carcass.dhs.org>)
Список 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 по дате отправления:

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Map of developers
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Script to compute randon page cost