Re: Restrict user's query row number

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: "Burhan Akbulut (ETIYA)" <burhan(dot)akbulut(at)etiya(dot)com>
Cc: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Restrict user's query row number
Date: 2021-08-26 13:18:37
Message-ID: 20210826131837.GA22661@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, Aug 26, 2021 at 12:05:34PM +0000, Burhan Akbulut (ETIYA) wrote:
> Hello,
>
>
>
> Some tables that contain sensitive data can be accessed by many people from the
> operation team. I want to limit rows the results of queries containing these
> tables through client applications such as Pgadmin or DBeaver.
>
>
>
> Can I do this exactly? How can I do it if I can?

I think views and row-level security should help:

https://www.postgresql.org/docs/13/ddl-rowsecurity.html

--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com

If only the physical world exists, free will is an illusion.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Laurenz Albe 2021-08-26 13:23:15 Re: Restrict user's query row number
Previous Message Burhan Akbulut (ETIYA) 2021-08-26 12:05:34 Restrict user's query row number