Re: Clarification on RLS policy - Mailing list pgsql-general

From Vydehi Ganti
Subject Re: Clarification on RLS policy
Date
Msg-id CAMH-PzXKwDgS3dk8VDJ8aUp859wf0-vpTevxGFaxZZzCgGzbkQ@mail.gmail.com
Whole thread Raw
In response to Re: Clarification on RLS policy  (Dominique Devienne <ddevienne@gmail.com>)
List pgsql-general
Hi,

Checking the documents . 
Post fetching Boolean can we have a trigger or function which can build up the where filter clause?
Or can i have a case statement in the Using which can return such statements?



On Fri, Apr 25, 2025 at 7:02 PM Dominique Devienne <ddevienne@gmail.com> wrote:
On Fri, Apr 25, 2025 at 3:29 PM Vydehi Ganti <rayudugs@gmail.com> wrote:
> Can i know if there is any scenario or ref document for the design you suggested above?

Some docs:
https://www.postgresql.org/docs/current/ddl-rowsecurity.html
https://satoricyber.com/postgres-security/postgres-row-level-security/

Your Oracle function converted to PostgreSQL, FWIW. Use at your own risk.
https://chatgpt.com/share/680b8e36-b4ac-800e-9e0e-2601aecd2aee

pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: Upsert error "column reference is ambiguous"
Next
From: Tim Starling
Date:
Subject: Re: Upsert error "column reference is ambiguous"