diff -U3 /home/postgres/postgres/src/test/regress/expected/rowsecurity.out /home/postgres/postgres/build/testrun/recovery/027_stream_regress/data/results/rowsecurity.out --- /home/postgres/postgres/src/test/regress/expected/rowsecurity.out 2026-02-20 08:18:13.515241135 +0000 +++ /home/postgres/postgres/build/testrun/recovery/027_stream_regress/data/results/rowsecurity.out 2026-02-20 08:20:34.167171315 +0000 @@ -2462,7 +2462,7 @@ -- DO SELECT requires SELECT rights, should fail for non-novel INSERT INTO document VALUES (33, (SELECT cid from category WHERE cname = 'science fiction'), 1, 'regress_rls_bob', 'another sci-fi') ON CONFLICT (did) DO SELECT RETURNING did, dauthor, dtitle; -ERROR: new row violates row-level security policy for table "document" +ERROR: new row violates row-level security policy "p1_select_novels" for table "document" -- DO SELECT with WHERE and EXCLUDED reference INSERT INTO document VALUES (1, (SELECT cid from category WHERE cname = 'novel'), 1, 'regress_rls_bob', 'another novel') ON CONFLICT (did) DO SELECT WHERE excluded.dlevel = 1 RETURNING did, dauthor, dtitle; @@ -2482,7 +2482,7 @@ -- should fail UPDATE USING policy for novel with dlevel = 2 INSERT INTO document VALUES (2, (SELECT cid from category WHERE cname = 'novel'), 1, 'regress_rls_bob', 'another novel') ON CONFLICT (did) DO SELECT FOR UPDATE RETURNING did, dauthor, dtitle; -ERROR: new row violates row-level security policy (USING expression) for table "document" +ERROR: new row violates row-level security policy "p3_update_novels" (USING expression) for table "document" SET SESSION AUTHORIZATION regress_rls_alice; DROP POLICY p1_select_novels ON document; DROP POLICY p2_insert_own ON document;