Re: minor error message enhance: print RLS policy name when only one permissive policy exists

Florin Irion <irionr@gmail.com>

From: Florin Irion <irionr@gmail.com>
To: jian he <jian.universality@gmail.com>
Cc: Chao Li <li.evan.chao@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2025-11-11T14:10:27Z
Lists: pgsql-hackers
Hi Jian,

I reviewed your patch. The change is relevant primarily when there is a
single
permissive policy, the most common case. When multiple policies are in
place,
the error message remains generic, which is appropriate. All test updates
confirm that the enhancement performs correctly across various RLS
scenarios.

In summary, this enhancement effectively improves the developer experience
while maintaining simplicity.

LGTM

Cheers,
Florin
-- 

*     Florin Irion       *๐Ÿ’ผ https://www.enterprisedb.com
โ˜Ž๏ธ  +39 328 5904901
๐Ÿ˜  59100, Prato, PO
๐Ÿ‡ฎ๐Ÿ‡น  Italia