[DOCS] Confusing Trigger Docs. - Mailing list pgsql-docs

From neil@fairwindsoft.com
Subject [DOCS] Confusing Trigger Docs.
Date
Msg-id 20170703200710.27956.64565@wrigleys.postgresql.org
Whole thread Raw
Responses Re: [DOCS] Confusing Trigger Docs.  (Bruce Momjian <bruce@momjian.us>)
Re: [DOCS] Confusing Trigger Docs.  (Bruce Momjian <bruce@momjian.us>)
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.6/static/trigger-definition.html
Description:

https://www.postgresql.org/docs/devel/static/trigger-definition.html

This sentence:

"If an INSERT contains an ON CONFLICT DO UPDATE clause, it is possible that
the effects of all row-level BEFORE INSERT triggers and all row-level BEFORE
UPDATE triggers can both be applied in a way that is apparent from the final
state of the updated row, if an EXCLUDED column is referenced."

is very hard to digest.

Should "is apparent" really be "is not apparent"?  If not, what does "is
apparent" mean and why is this statement here?

Then

"There need not be an EXCLUDED column reference for both sets of row-level
BEFORE triggers to execute, though."

Does this mean that both row level BEFORE INSERT and BEFORE UPDATE triggers
are always executed when ON CONFLICT DO UPDATE clause is present?  Or is
there some circumstance where they are not?

If so, does this also mean that if I have a single trigger defined as BEFORE
UPDATE OR INSERT that this trigger will fire twice?

pgsql-docs by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: [DOCS] Documentation still mentioning SSLv2 and SSLv3
Next
From: srn@coolheads.com
Date:
Subject: [DOCS] can't be both non-capturing and still capture