Row Level Security Policy Name in Error Message

From: Louis Tian <louis(dot)tian(at)aquamonix(dot)com(dot)au>
To: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Row Level Security Policy Name in Error Message
Date: 2023-03-06 00:18:14
Message-ID: SY4P282MB10529DCF7C0BA99A505AFF76A6B69@SY4P282MB1052.AUSP282.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi All,

Wondering whether there is a way to get the row-level security policy name in the error message when it's violated.
I am only getting a more generic error message like this.
ERROR: new row violates row-level security policy for table "table_name"

Thanks for your help.

Regards,
Louis Tian

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ajin Cherian 2023-03-06 06:34:25 Re: Support logical replication of DDLs
Previous Message Adrian Klaver 2023-03-05 16:00:38 Re: what's hsitoric MVCC Snapshot?