public inbox for [email protected]  
help / color / mirror / Atom feed
From: Mark Phillips <[email protected]>
To: Laurenz Albe <[email protected]>
Cc: [email protected]
Subject: Re: Row level security policy
Date: Thu, 14 Nov 2024 04:04:00 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

Thank you for clarifying this. I missed that even though it is there in the second paragraph.
 - Mark, out and about.

> On Nov 14, 2024, at 1:57 AM, Laurenz Albe <[email protected]> wrote:
> 
> On Wed, 2024-11-13 at 17:33 -0800, Mark Phillips wrote:
>> Given a database table with one policy statement FOR SELECT applied, it is necessary
>> to apply additional policy statements for insert, update, and delete operations?
>> 
>> My testing indicates that this is case but I haven’t found an explanation of this
>> requirement in the documentation.
> 
> https://www.postgresql.org/docs/current/ddl-rowsecurity.html says:
> 
>  When row security is enabled on a table (with ALTER TABLE ... ENABLE ROW LEVEL SECURITY),
>  all normal access to the table for selecting rows or modifying rows must be allowed by
>  a row security policy.
> 
> So if you only have a policy for SELECT, that's all you are allowed to do.
> 
> Yours,
> Laurenz Albe







view thread (2+ messages)

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]
  Subject: Re: Row level security policy
  In-Reply-To: <[email protected]>

* 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