Re: Trigger behaviour not as stated

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Trigger behaviour not as stated
Дата
Msg-id 28238.1517167118@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Trigger behaviour not as stated  (Thomas Munro <thomas.munro@enterprisedb.com>)
Ответы Re: Trigger behaviour not as stated
Список pgsql-docs
Thomas Munro <thomas.munro@enterprisedb.com> writes:
> On Thu, Jan 25, 2018 at 11:07 AM, Bruce Momjian <bruce@momjian.us> wrote:
>> ... The attached patch updates the docs to say
>> statement-level triggers fire on the "referenced" table, while row-level
>> triggers fire only on the "affected" table, (vs. all affected tables)
>> even if they are not referenced in the query.  I would backpatch this to
>> PG 10.

> I was trying to convey that, but it does seem a little terse and
> cryptic.  Your addition of "referenced" and "only" make it clearer.

Hm, the first part of Bruce's change seems fine, but I think this wording:

     ...  In contrast,
!    row-level triggers are fired only on affected partitions or child tables,
!    even if they are not referenced in the query.

is still confusing.  How about something like

     In contrast, row-level triggers are fired for each actual row change,
     including changes in partitions or child tables that are not directly
     named in the query.

Possibly "row operation" would be better than "row change".

            regards, tom lane


В списке pgsql-docs по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: Trigger behaviour not as stated
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Trigger behaviour not as stated