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 1uY6Cw-0013tQ-BQ for pgsql-hackers@arkaria.postgresql.org; Sat, 05 Jul 2025 16:57:46 +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 1uY6Cu-007x0l-5t for pgsql-hackers@arkaria.postgresql.org; Sat, 05 Jul 2025 16:57:44 +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 1uY6Ct-007x0b-SB for pgsql-hackers@lists.postgresql.org; Sat, 05 Jul 2025 16:57:44 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uY6Cr-005jtl-3D for pgsql-hackers@postgresql.org; Sat, 05 Jul 2025 16:57:43 +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 522E4618B2; Sun, 6 Jul 2025 01:57:37 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: <75d59502-b571-4df8-9269-fd07cee52dd4@oss.nttdata.com> Date: Sun, 6 Jul 2025 01:57:36 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: A assert failure when initdb with track_commit_timestamp=on Content-Language: en-US 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> From: Fujii Masao In-Reply-To: <262595.1751649473@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/05 2:17, Tom Lane wrote: > Fujii Masao writes: >> On 2025/07/05 0:30, Tom Lane wrote: >>> As I remarked in the other thread, I don't like inventing a different >>> solution for each GUC. So if there are even two that need something >>> done, I think Hayato-san's idea has merit. > >> This code seems to assume that the processing mode is switched to bootstrap before >> GUC parameters are processed. But is that actually the case? > > Oh, good point. But there doesn't seem to be any ill effect from > making BootstrapModeMain set BootstrapProcessing a bit earlier. Maybe. But I noticed that your patch also moves the line "IgnoreSystemIndexes = true;" earlier. Why did you make this change? This could cause initdb to fail with a PANIC error when run with ignore_system_indexes=off, like this: $ initdb -D data -c ignore_system_indexes=off ... FATAL: could not open relation with OID 2703 PANIC: cannot abort transaction 1, it was already committed So perhaps "IgnoreSystemIndexes = true;" should be placed after GUCs are processed? Or GUC ignore_system_indexes also should be treated in the same way as transaction_timeout? Regards, -- Fujii Masao NTT DATA Japan Corporation