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.94.2) (envelope-from ) id 1uXsbI-00Fl8B-H6 for pgsql-hackers@arkaria.postgresql.org; Sat, 05 Jul 2025 02:26:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uXsaG-0031ss-ET for pgsql-hackers@arkaria.postgresql.org; Sat, 05 Jul 2025 02:24:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uXsaG-0031sk-4w for pgsql-hackers@lists.postgresql.org; Sat, 05 Jul 2025 02:24:56 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uXsaE-005dtB-1M for pgsql-hackers@postgresql.org; Sat, 05 Jul 2025 02:24:55 +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 5652OcPU378330; Fri, 4 Jul 2025 22:24:38 -0400 From: Tom Lane To: Michael Paquier cc: Fujii Masao , "Hayato Kuroda (Fujitsu)" , Andy Fan , PostgreSQL Hackers Subject: Re: A assert failure when initdb with track_commit_timestamp=on In-reply-to: References: <87plejmnpy.fsf@163.com> <1f8f703d-72e8-4d05-ab16-ff0403a1d19d@oss.nttdata.com> <87o6u19z9w.fsf@163.com> <3694f39a-7148-4197-91fe-25f3d01222b7@oss.nttdata.com> <249358.1751643017@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Sat, 05 Jul 2025 10:21:00 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <378328.1751682278.1@sss.pgh.pa.us> Date: Fri, 04 Jul 2025 22:24:38 -0400 Message-ID: <378329.1751682278@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > This is assuming that the default value assigned to a GUC will always > take the right decision in the bootstrap case, which is perhaps OK > anyway in most cases, or we would know about that during initdb. Yeah, I've been wondering about whether the code ought to accept source == PGC_S_DYNAMIC_DEFAULT. It doesn't matter until/unless we need to set this flag on a GUC that has code to compute a dynamic default, so any decision we made right now would be made in a vacuum ... but perhaps the right guess is to allow it. >> If we went this way, we'd presumably revert 5a6c39b6d in favor >> of marking track_commit_timestamp with this flag. > Makes sense, on HEAD. Well, you back-patched 5a6c39b6d, so it's not clear to me why we wouldn't want to back-patch something to fix any other GUC suffering from a comparable problem. I don't see that adding another possible GUC flag is an ABI break, especially when it's a flag that no extension could have a need to set. regards, tom lane