Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJFXQ-0004mb-Dk for pgsql-admin@arkaria.postgresql.org; Thu, 26 Aug 2021 13:35:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mJFXN-0007Ff-QR for pgsql-admin@arkaria.postgresql.org; Thu, 26 Aug 2021 13:35:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJFXN-00076b-HX for pgsql-admin@lists.postgresql.org; Thu, 26 Aug 2021 13:35:21 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJFHC-0001M4-Vz for pgsql-admin@lists.postgresql.org; Thu, 26 Aug 2021 13:18:44 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1mJFHB-0005ZO-TG; Thu, 26 Aug 2021 09:18:37 -0400 Date: Thu, 26 Aug 2021 09:18:37 -0400 From: Bruce Momjian To: "Burhan Akbulut (ETIYA)" Cc: "pgsql-admin@lists.postgresql.org" Subject: Re: Restrict user's query row number Message-ID: <20210826131837.GA22661@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.