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 1uZ3ND-00FZ4Y-MB for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Jul 2025 08:08:19 +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 1uZ3NA-006RCj-IP for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Jul 2025 08:08:17 +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 1uZ3NA-006RCX-8k for pgsql-hackers@lists.postgresql.org; Tue, 08 Jul 2025 08:08:16 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uZ3N8-006BZO-0j for pgsql-hackers@postgresql.org; Tue, 08 Jul 2025 08:08:16 +0000 Received: from [192.168.11.9] (p1696134-ipoe.ipoe.ocn.ne.jp [118.0.93.133]) by oss.nttdata.com (Postfix) with ESMTPSA id C193D61B91; Tue, 8 Jul 2025 17:08:08 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: <7547e524-bf5f-45ef-bcbc-59bc55dae8be@oss.nttdata.com> Date: Tue, 8 Jul 2025 17:08:08 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: A assert failure when initdb with track_commit_timestamp=on To: Tom Lane Cc: "Hayato Kuroda (Fujitsu)" , Andy Fan , 'Michael Paquier' , PostgreSQL Hackers 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> <262595.1751649473@sss.pgh.pa.us> <75d59502-b571-4df8-9269-fd07cee52dd4@oss.nttdata.com> <9093.1751736193@sss.pgh.pa.us> <61810.1751738407@sss.pgh.pa.us> Content-Language: en-US From: Fujii Masao In-Reply-To: <61810.1751738407@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025/07/06 3:00, Tom Lane wrote: > I wrote: >> Fujii Masao writes: >>> Or GUC ignore_system_indexes also should be treated in the same way >>> as transaction_timeout? > >> Yes, I'd say we ought to mark that GUC as don't-accept-in-bootstrap >> too. I've not done any research about what other GUCs can break >> initdb, but now I'm starting to suspect there are several. > > Here's a fleshed-out implementation of Hayato-san's idea. I've > not done anything about reverting 5a6c39b6d, nor have I done any > checks to see if there are other GUCs we ought to mark similarly. > (But at this point I'd be prepared to bet that there are.) Thanks for the patch! It looks good to me. Shouldn't we also add a TAP test to verify that initdb works correctly with GUCs marked as GUC_NOT_IN_BOOTSTRAP? Regards, -- Fujii Masao NTT DATA Japan Corporation