Subject: pgsql: doc: Clarify RLS policies applied for ON CONFLICT DO NOTHING.

From: Dean Rasheed <[email-masked]>
Date: Wed, 11 Feb 2026 10:27:44 +0000

doc: Clarify RLS policies applied for ON CONFLICT DO NOTHING.

On the CREATE POLICY page, the description of per-command policies
stated that SELECT policies are applied when an INSERT has an ON
CONFLICT DO NOTHING clause. However, that is only the case if it
includes an arbiter clause, so clarify that.

While at it, also clarify the comment in the regression tests that
cover this.

Author: Dean Rasheed <[email-masked]>
Reviewed-by: Viktor Holmberg <[email-masked]>
Discussion: https://postgr.es/m/CAEZATCXGwMQ+x00YY9XYG46T0kCajH=[email-masked]
Backpatch-through: 14

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/301449686df7e84699b6cab0afb8ab3119ddcd1f

Modified Files
--------------
doc/src/sgml/ref/create_policy.sgml | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)