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 1sOA0O-00Cih2-Uw for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Jul 2024 05:55:12 +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 1sOA0N-00F3Xn-3F for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Jul 2024 05:55:11 +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 1sOA0M-00F3Xf-Q1 for pgsql-hackers@lists.postgresql.org; Mon, 01 Jul 2024 05:55:11 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sOA0J-003yd1-W9 for pgsql-hackers@lists.postgresql.org; Mon, 01 Jul 2024 05:55:09 +0000 Received: from [172.20.10.7] (sp49-97-71-146.msc.spmode.ne.jp [49.97.71.146]) by oss.nttdata.com (Postfix) with ESMTPSA id 194AB618D3 for ; Mon, 1 Jul 2024 14:55:03 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: <2a6fe324-3008-4e44-9ff6-b5bba9232490@oss.nttdata.com> Date: Mon, 1 Jul 2024 14:54:56 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Postgres hackers Content-Language: en-US From: Fujii Masao Subject: Assertion failure with summarize_wal enabled during pg_createsubscriber 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 Hi, In HEAD, I encountered the following assertion failure when I enabled summarize_wal and ran pg_createsubscriber. 2024-07-01 14:42:15.697 JST [19195] LOG: database system is ready to accept connections TRAP: failed Assert("switchpoint >= state->EndRecPtr"), File: "walsummarizer.c", Line: 1382, PID: 19200 0 postgres 0x0000000105c46c5d ExceptionalCondition + 189 1 postgres 0x000000010590b1e4 summarizer_read_local_xlog_page + 340 2 postgres 0x00000001054e401e ReadPageInternal + 542 3 postgres 0x00000001054e24c0 XLogDecodeNextRecord + 464 4 postgres 0x00000001054e2283 XLogReadAhead + 67 5 postgres 0x00000001054e2185 XLogReadRecord + 53 6 postgres 0x000000010590a3ab SummarizeWAL + 1115 7 postgres 0x000000010590963a WalSummarizerMain + 1242 8 postgres 0x00000001058fd10a postmaster_child_launch + 234 9 postgres 0x000000010590133d StartChildProcess + 29 10 postgres 0x0000000105904582 MaybeStartWalSummarizer + 82 11 postgres 0x0000000105901af1 ServerLoop + 1153 12 postgres 0x00000001059007ca PostmasterMain + 6554 13 postgres 0x00000001057a3782 main + 818 14 dyld 0x00007ff80e5e2366 start + 1942 2024-07-01 14:42:15.912 JST [19195] LOG: WAL summarizer process (PID 19200) was terminated by signal 6: Abort trap: 6 2024-07-01 14:42:15.913 JST [19195] LOG: terminating any other active server processes Here are the steps to reproduce this issue. -------------------------------- initdb -D pub cat <> pub/postgresql.conf wal_level = 'logical' summarize_wal = on EOF pg_ctl -D pub start pgbench -i pgbench -T 600 & pg_basebackup -D sub -c fast -R pg_createsubscriber -d postgres -D sub -p 5433 -P "port=5432" -------------------------------- Is this the known issue? Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION