Re: PostgreSQL

From: Thomas Kellerer <shammat(at)gmx(dot)net>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: PostgreSQL
Date: 2023-02-07 11:10:07
Message-ID: 03811072-b926-42bd-7720-8b93c432aacd@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Joseph Kennedy schrieb am 07.02.2023 um 12:02:
> I would like restrict access to sensitive or restricted information
> for some users (eg. hide data of one or more clients for some
> database users).
>
> PostgreSQL allows to create security policy as Row-Level Security,
> policies based on the querying user.
>
>
> Are there any other alternatives to RLS, are there any better
> solutions??

You can create a view layer and only grant access to the data through views
(and obviously revoke access to the tables directly)

Or allow access only through (set returning) functions

In response to

  • PostgreSQL at 2023-02-07 11:02:21 from Joseph Kennedy

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Munro 2023-02-07 11:10:37 Re: Too coarse predicate locks granularity for B+ tree indexes
Previous Message Rinat Shigapov 2023-02-07 11:08:26 Re: Too coarse predicate locks granularity for B+ tree indexes