pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Burhan Akbulut (ETIYA) <burhan.akbulut@etiya.com>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Restrict user's query row number
Date: Thu, 26 Aug 2021 09:18:37 -0400
Message-ID: <20210826131837.GA22661@momjian.us> (raw)
In-Reply-To: <VI1PR01MB703983265286DE36A7FE7AB589C79@VI1PR01MB7039.eurprd01.prod.exchangelabs.com>
References: <VI1PR01MB703983265286DE36A7FE7AB589C79@VI1PR01MB7039.eurprd01.prod.exchangelabs.com>

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@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

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






view thread (4+ messages)  latest in thread

Message-ID: <20210826131837.GA22661@momjian.us>
Permalink:  ../20210826131837.GA22661@momjian.us/
Also on:    postgresql.org/message-id/20210826131837.GA22661@momjian.us

 · 

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: pgsql-admin@postgresql.org
  Cc: bruce@momjian.us, burhan.akbulut@etiya.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Restrict user's query row number
  In-Reply-To: <20210826131837.GA22661@momjian.us>

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

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