On 07.07.25 19:52, Dean Rasheed wrote: > perhaps that should say > > Note that any values that were supplied by defaults, as well as > the effects of all per-row BEFORE INSERT triggers are reflected > in excluded values, since that may have contributed to the row > being excluded from insertion.
+1 IMO a short mention at insert.sgml also wouldn't hurt, e.g. If the INSERT has an ON CONFLICT DO UPDATE clause, a column name or * may be qualified using EXCLUDED to return the values that would have been inserted. These values include any DEFAULT expressions or computed expressions from the INSERT clause. If there is no conflict, then all EXCLUDED values will be NULL. Best, Jim