Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wgRRI-006Boo-2N for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Jul 2026 18:19:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wgRRH-00DJFd-1z for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Jul 2026 18:19:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wgRRH-00DJFU-16 for pgsql-hackers@lists.postgresql.org; Sun, 05 Jul 2026 18:19:35 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wgRRA-00000001uZU-3BMj for pgsql-hackers@lists.postgresql.org; Sun, 05 Jul 2026 18:19:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 665IJPsa767662; Sun, 5 Jul 2026 14:19:25 -0400 From: Tom Lane To: Tatsuya Kawata cc: fabriziomello@gmail.com, pgsql-hackers@lists.postgresql.org, Jobin Augustine Subject: Re: Improving display of octal GUCs In-reply-to: References: <3006313.1782851535@sss.pgh.pa.us> Comments: In-reply-to Tatsuya Kawata message dated "Sun, 05 Jul 2026 19:26:36 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <767660.1783275565.1@sss.pgh.pa.us> Date: Sun, 05 Jul 2026 14:19:25 -0400 Message-ID: <767661.1783275565@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tatsuya Kawata writes: > One minor note: I considered whether check_GUC_init() should > validate GUC_SHOW_IN_OCTAL (e.g. not allowing it together with a > show_hook, or with other flags). But some GUCs intentionally use a > show_hook, and check_GUC_init() validates only a few combinations > today, so I don't think it's necessary here. Yeah, I think there actually could be a use-case for having a show_hook along with GUC_SHOW_IN_OCTAL: if you want the value shown in octal but the calculation of the effective value is more complicated than just "show the variable". So I don't want to reject that. Perhaps there's a case for checking that GUC_SHOW_IN_OCTAL isn't applied to a non-integer GUC, but I can't get too excited about that. regards, tom lane