Re: PostgreSQL

From: Giovanni Biscontini <biscontini(dot)g(at)es2000(dot)it>
To: Joseph Kennedy <joseph(dot)kennedy(dot)486(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL
Date: 2023-02-07 11:15:57
Message-ID: CAOM+UfXknNh+9nTPbSWrvncxcBrU9tFRL4aLaBzgQdm6sJrPnw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Joseph,
one way to filter without RLS is using functions to make queries:
this way you can cross check input parameters with login user (= user
issuing query). Using functions slow an execution but incapsulate query
letting you be able even to parse input parameters and filter results.
Sorry but I have no time ref for RLS, and remember that before you can use
RLS you must enable it on the table you want to use in.
best regards, Giovanni

Il giorno mar 7 feb 2023 alle ore 12:02 Joseph Kennedy <
joseph(dot)kennedy(dot)486(at)gmail(dot)com> ha scritto:

> 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??
>
> What are the advantages and disadvantages of RLS?
>
> How much RLS will cause a decrease in database performance?
>
> JK
>
>
>
>
>

--

*Cordiali Saluti*

*Dott. Giovanni Biscontini*

* [Divisone Software]*

*Str. Ponte Alto Sud, 74 41123 Modena (MO)*

Phone: 059_452094
Fax: 059_8672171
E-mail: biscontini(dot)g(at)es2000(dot)it

Skype: g.biscontini.eurosystem2000

WEB: https://www.es2000.it <http://www.es2000.it/>

____________________________________

Privacy e riservatezza: il presente messaggio, così come i relativi
allegati, contengono dati ed informazioni da considerarsi strettamente
riservate ed è indirizzato esclusivamente al destinatario sopra indicato,
il quale è l'unico autorizzato a trattarlo in osservanza delle norme del
Regolamento UE 2016/679 (RGPD) . Preghiamo chiunque ricevesse questo
messaggio per errore di evitare di copiarlo, divulgarlo, distribuirlo a
terzi e di dare notizia al mittente dell’errato invio, distruggendone poi
l'eventuale copia cartacea e la copia in formato elettronico.

Il titolare dei dati potrà esercitare tutti i diritti di cui all'art.7 del
suddetto decreto tra cui quelli di accesso, rettifica, aggiornamento,
opposizione al trattamento e cancellazione

*Please, print this e-mail only if necessary*

In response to

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joseph Kennedy 2023-02-07 11:36:57 Re: PostgreSQL
Previous Message Thomas Munro 2023-02-07 11:10:37 Re: Too coarse predicate locks granularity for B+ tree indexes