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 1njl2g-0006tX-AF for pgsql-general@arkaria.postgresql.org; Wed, 27 Apr 2022 17:01:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1njl2f-0000Xn-5c for pgsql-general@arkaria.postgresql.org; Wed, 27 Apr 2022 17:01:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njl2e-0000Xd-R1 for pgsql-general@lists.postgresql.org; Wed, 27 Apr 2022 17:01:28 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njl2X-00008E-QP for pgsql-general@lists.postgresql.org; Wed, 27 Apr 2022 17:01:28 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1njl2W-003EWA-4y; Wed, 27 Apr 2022 13:01:20 -0400 Date: Wed, 27 Apr 2022 13:01:20 -0400 From: Bruce Momjian To: Aaron Gray Cc: pgsql-general@lists.postgresql.org Subject: Re: Whole Database or Table AES encryption Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Apr 27, 2022 at 05:21:41PM +0100, Aaron Gray wrote: > Hi, > > Is there any way to (virtually) encrypt whole databases or tables with > AES or other types of encryption ? You can use storage encryption via the operating system. Cybertec has a patch for PG 12 and the community is working on an implementation, perhaps for PG 16. You can also do column-level encryption on the server side via pgcrypto, or on the client side. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Indecision is a decision. Inaction is an action. Mark Batterson