public inbox for [email protected]  
help / color / mirror / Atom feed
From: Vydehi Ganti <[email protected]>
To: Dominique Devienne <[email protected]>
Cc: Laurenz Albe <[email protected]>
Cc: [email protected]
Subject: Re: Clarification on RLS policy
Date: Fri, 25 Apr 2025 18:58:52 +0530
Message-ID: <CAMH-PzUBLFXsNPeovtg1iLf=HqOxzgTBn+6iToPNnOY0ds9b=A@mail.gmail.com> (raw)
In-Reply-To: <CAFCRh-9+65e25FCzGbO9W-LXX1Bcf-LYVec-F5br6ZvmcyTv1A@mail.gmail.com>
References: <CAMH-PzUPN7JcLXJx-aJzGnJD2T-aSMo8gaMFkzO_x26urpMqSA@mail.gmail.com>
	<[email protected]>
	<CAFCRh-_fXGfKk6b26xaDD1fg5OhLy92bNofmeDfX2TFjkQLLXA@mail.gmail.com>
	<CAMH-PzXe7AR2QDCDx3eRZPMGuixfTwm3sLF3kMZQkyNhtu=5qQ@mail.gmail.com>
	<CAFCRh-8_fXc-96mVtuW7=9CeXWW5duopnOdMVCXrbPjJ_aMD9Q@mail.gmail.com>
	<CAMH-PzW2aAC2cVGoLfKxU2dLx-_dwz+Y47zN9f8jHjTifUhT+Q@mail.gmail.com>
	<CAFCRh-9+65e25FCzGbO9W-LXX1Bcf-LYVec-F5br6ZvmcyTv1A@mail.gmail.com>

Can i know if there is any scenario or ref document for the design you
suggested above?

On Fri, 25 Apr, 2025, 18:56 Dominique Devienne, <[email protected]> wrote:

> On Fri, Apr 25, 2025 at 3:21 PM Vydehi Ganti <[email protected]> wrote:
> > So I don't have a possibility to append where clause dynamically and can
> only check the boolean?
>
> Indeed. But given that you can run arbitrary SQL inside the function,
> even dynamic SQL,
> that ends up pretty much the same. And you have access to in-row
> values too, when calling the function.
> It's just a different design, that's all. --DD
>


view thread (10+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Clarification on RLS policy
  In-Reply-To: <CAMH-PzUBLFXsNPeovtg1iLf=HqOxzgTBn+6iToPNnOY0ds9b=A@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox