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 1oVR5Q-0007Zc-2f for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Sep 2022 05:25: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 1oVR5O-0000Ta-L2 for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Sep 2022 05:25:22 +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 1oVR5O-0000TR-Bw for pgsql-hackers@lists.postgresql.org; Tue, 06 Sep 2022 05:25:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oVR5J-0001Nx-Ga for pgsql-hackers@lists.postgresql.org; Tue, 06 Sep 2022 05:25:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 2865PE9W3046790; Tue, 6 Sep 2022 01:25:15 -0400 From: Tom Lane To: Pavel Stehule cc: pgsql-hackers@lists.postgresql.org Subject: Re: Modernizing our GUC infrastructure In-reply-to: References: <2982579.1662416866@sss.pgh.pa.us> Comments: In-reply-to Pavel Stehule message dated "Tue, 06 Sep 2022 06:32:21 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3046788.1662441914.1@sss.pgh.pa.us> Date: Tue, 06 Sep 2022 01:25:14 -0400 Message-ID: <3046789.1662441914@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Pavel Stehule writes: > The bad performance is not the main reason for implementing session > variables (and in almost all cases the performance of GUC is not a problem, > because it is not a bottleneck, and in some terrible cases, I can save the > GUC to a variable). There are other differences: Well, yeah, the schema-variables patch offers a bunch of other features. What I'm not sure about is whether there's actually much field demand for those. I think if we fix guc.c's performance issues and add some simple features on top of that, like the ability to declare bool, int, float data types not just string for a user-defined GUC, we'd have exactly what a lot of people want --- not least because it'd be upwards-compatible with what they are already doing. However, that's probably a debate to have on the other thread not here. This patch doesn't foreclose pushing forward with the schema-variables patch, if people want that. regards, tom lane