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 1uYwiz-00DrV5-24 for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Jul 2025 01:02:21 +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 1uYwiw-005QxU-VM for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Jul 2025 01:02:19 +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.94.2) (envelope-from ) id 1uYwiw-005QxI-LV for pgsql-hackers@lists.postgresql.org; Tue, 08 Jul 2025 01:02:19 +0000 Received: from m16.mail.163.com ([220.197.31.2]) by magus.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1uYwir-006MZm-2r for pgsql-hackers@postgresql.org; Tue, 08 Jul 2025 01:02:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-ID:MIME-Version: Content-Type; bh=NNLzADDbN0HvCxy/5A8B4PqLVpsA/naA4bK+iPr3Qic=; b=CZ6UjRkghEuu/KhdkefgFw6ZPkpNEasQxy67mXI8SXS2b5x2MRHzz/OUk0byck iUyXTy3EWt1JUNkcqalKhDLRNZQqvg3mAGlz0RaOQIhehUKOG77FtndfsOwamyuH zI8nGY79NTTL4Ebw32MH3uiKcDuKanv0jMrlbwT1lEfls= Received: from lovely-coding (unknown []) by gzga-smtp-mtada-g0-2 (Coremail) with SMTP id _____wC3BNoAbmxoFzAZDQ--.65210S3; Tue, 08 Jul 2025 09:01:54 +0800 (CST) From: Andy Fan To: Tom Lane Cc: Fujii Masao , "Hayato Kuroda (Fujitsu)" , "'Michael Paquier'" , PostgreSQL Hackers Subject: Re: A assert failure when initdb with track_commit_timestamp=on In-Reply-To: <61810.1751738407@sss.pgh.pa.us> (Tom Lane's message of "Sat, 05 Jul 2025 14:00:07 -0400") 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> Date: Tue, 08 Jul 2025 09:01:52 +0800 Message-ID: <87tt3na41r.fsf@163.com> MIME-Version: 1.0 Content-Type: text/plain X-CM-TRANSID: _____wC3BNoAbmxoFzAZDQ--.65210S3 X-Coremail-Antispam: 1Uf129KBjvJXoWrZF45CFy3Wr48JryUtFW7XFb_yoW8JrWDpr Wrtw13tr4ktF1jyw1Ivr4kXw40ya1rt3y5tFyqqrZ5A3s8WwnYvrsaq3s09a47Crn5C3W2 vF4jy34UZw45Za7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07U4rW7UUUUU= X-Originating-IP: [101.227.46.168] X-CM-SenderInfo: x2klx3xlid0iqsrtqiywtou0bp/xtbBhR6EU2hsZPS9+gAAsf List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > 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.) I pay my attention to two cases, both of them are good. (1). Revert the old commit 5a6c39b6d first, and apply your patch. verify initdb with -c transaction_timeout and track_commit_timestamp, both of them works well. transaction_timeout with a smaller value raise transaction_timeout error. and a biggger value works well. (2). after (1), check values of transaction_timeout and track_commit_timestamp in postgres.conf, both of them are good (with the default value as the user provided in the initdb commandline). So the patch looks good to me, thanks for paying attention to this issue! -- Best Regards Andy Fan