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 1pboz0-0007K3-FT for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Mar 2023 20:41:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pboyy-0001Vm-7x for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Mar 2023 20:41:24 +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 1pboyx-0001Vd-Uv for pgsql-hackers@lists.postgresql.org; Mon, 13 Mar 2023 20:41:23 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pboyv-0000M0-Fc for pgsql-hackers@postgresql.org; Mon, 13 Mar 2023 20:41:22 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id DF7715C01E3; Mon, 13 Mar 2023 16:41:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 13 Mar 2023 16:41:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1678740080; x=1678826480; bh=Pj 9F7FA8vgREY+FLdwYKnCzr7gU8+ApWueIhem1COLY=; b=fyQhIpU+kzY/TFpSNX OlRU2n7fu8HWxrUaWQJ9XD89Z/KHm6n4kPXZ3ohhFt0QWlxNKg4jju/RQAY/vh2w nNb8TScPxsJEPD1XetbDVADvcx5+qsssLUieYa1qUqLUatnnLwWiR2YuOwVNaMxe 32mBoA70nW8EyqCAlY9Wbl6fn3axbbp6KBS1tQOsVss/nhNgx4uGjeOaMrtSNZp7 nXTAHfYMnvRn2jq2I6dkZPLxm12wVPOtIQB++zUBWTNyOkMjYK2nFvxaz+0e+mVn nJ9ma8xtvD6gs8MeoMlwa3HWYUfbbDmW2hbC9CAa0QIePNvdBqUt4ZnZ1PU5yxvs vSAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1678740080; x=1678826480; bh=Pj9F7FA8vgREY +FLdwYKnCzr7gU8+ApWueIhem1COLY=; b=ogDElzNG6hXaYoeIUqWIZzmUv+9M9 eSyQUEwH9IjhKQ8r6+1sHN0pruDGipQPP11uxInOM1Vx6q4Jjm2Nc4OvPtkq0ux3 hbDJFinX2Pdh3dy9RtR1yEApGqbzCu3iELE7uE4wumWoo2nYPR7v7LyzpbeWf4VX WuN8GSaGkbESVaru+7iuQEfX4hx5f2MWLHE5YbbGagmOVoouAl1gTordwhNslHBx E5dx1dpZHxqe6jeB6SuQY8TiObJNaJ3wwJxxnV1ADXA45CvBt7ySng4HIP9n4Yif unVVq5Alpx8RipuYEO1PbDElPSO0SjZh5ivx9EwL35uNXwTgQDOi+VZdA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddvgedgudefkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgu rhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtf frrghtthgvrhhnpedvffefvefhteevffegieetfefhtddvffejvefhueetgeeludehteev udeitedtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 13 Mar 2023 16:41:20 -0400 (EDT) Date: Mon, 13 Mar 2023 13:41:19 -0700 From: Andres Freund To: Peter Eisentraut Cc: pgsql-hackers Subject: Re: Transparent column encryption Message-ID: <20230313204119.4mkepdvixcxrwpsc@awork3.anarazel.de> References: <8bcedb49-1496-0755-bd24-1cbabf30ec84@enterprisedb.com> <1034b6f1-ccab-8a22-c843-71104ebedf01@enterprisedb.com> <40c43d0d-ae4b-fe34-2667-771b3718384e@enterprisedb.com> <47e17f03-6595-6c09-8978-7a1581cad6f2@enterprisedb.com> <7a430d89-233b-5cd7-6892-9fed06695d39@enterprisedb.com> <20230312001125.ijeu4imbwlhj5flf@awork3.anarazel.de> <43a88695-5e0b-4379-94cf-0392fdea4be9@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43a88695-5e0b-4379-94cf-0392fdea4be9@enterprisedb.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-03-13 21:22:29 +0100, Peter Eisentraut wrote: > On 12.03.23 01:11, Andres Freund wrote: > > Have you done benchmarks of some simple workloads to verify this doesn't cause > > slowdowns (when not using encryption, obviously)? printtup.c is a performance > > sensitive portion for simple queries, particularly when they return multiple > > columns. > > The additional code isn't used when column encryption is off, so there > shouldn't be any impact. It adds branches, and it makes tupledescs wider. In tight spots, such as printtup, that can hurt, even if the branches aren't ever entered. Greetings, Andres Freund