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.96) (envelope-from ) id 1w6Eda-0045WM-07 for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2026 21:22:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w6EdY-00C9kY-1G for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2026 21:22:36 +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.96) (envelope-from ) id 1w6EdY-00C9kK-0J for pgsql-hackers@lists.postgresql.org; Fri, 27 Mar 2026 21:22:36 +0000 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w6EdW-00000001OOt-2vzc for pgsql-hackers@postgresql.org; Fri, 27 Mar 2026 21:22:35 +0000 Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52]) by mailfhigh.phl.internal (Postfix) with ESMTP id 0E5CD1400096; Fri, 27 Mar 2026 17:22:34 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Fri, 27 Mar 2026 17:22:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1774646554; x=1774732954; bh=LheAFB3uIm whDjdngNiShICCZlPDiC3HRA2KMmt8mqE=; b=QgNvvRJ0k0GRnZja5yhwE6lRE3 Y5zFajuqYamLssDjTRnpd8MFeNcBloYMWEz4TPdD2KLNS2mEyYT8pMwH0t5nf2Mq l+QtwaYEYMNMJ/PmY4nQsKmi1Wi79v+tCZ4HeY7ne/GttUzSCM/gAFFEOsz2dDBE 0G0rJlOREpNyQvUepoImBBOqcEHUJCdoa+X4OWDIs8aNgjK78HAlIQjKcKGVmWDL wCB5O/xw3tpubzYaZApmIcLFPL4BLq/MXnSmuXpPoVTbmfgUn/RL70K5a2djiivm vyzEv60BswFoNycS/Ok1Y33bnceRVcgUvO574T/bS9iB/ez2nZ+8YCKkPolg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1774646554; x=1774732954; bh=LheAFB3uImwhDjdngNiShICCZlPDiC3HRA2 KMmt8mqE=; b=HGSvItvH786fwDrf0PeGZ+Lbta/jCF2FqsdiVeZW4Ezndkg6Uuq 4Cci2f9N5cuSs6qfLngmk6aeVeKQWz3UBX9AEYJqWuQvlksak0tr0wnyPW1mQkHC QdeK97j6+c5EvfgJtN7y3/5IVUQ8bM/167LnOtJo1PyveuFbPLv3DlcmlS5LzMQv H9ZMsNA9MTzDnrQIjmuiLUUxVuj57Milaupd6Hk6zkrSjriSLZS137Bjk6dQOzGg IxO4K6zijlkMEpAAS4kpUR+o2mI7fr5ORDqifOVETAMeeiaM74Srb14boG6Ah+BM n0IpSgNxY9sP4q3SWQe4QzpL2AgYgxifI3g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeffedufeehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkfhggtggujgesthdtsfdttddtvdenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrfgrth htvghrnhepgeelgeekgfelfeehhffgueekgfdvgfetffekgedvvdevueeiteefuedtvddt veeinecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghdpphhgshhqlhdrsghuih hlugenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegr nhgurhgvshesrghnrghrrgiivghlrdguvgdpnhgspghrtghpthhtohephedpmhhouggvpe hsmhhtphhouhhtpdhrtghpthhtohepnhgrthhhrghnuggsohhsshgrrhhtsehgmhgrihhl rdgtohhmpdhrtghpthhtoheprhhosggvrhhtmhhhrggrshesghhmrghilhdrtghomhdprh gtphhtthhopehsrghmihhmshgvihhhsehgmhgrihhlrdgtohhmpdhrtghpthhtohephhhl ihhnnhgrkhgrsehikhhirdhfihdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhsse hpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 Mar 2026 17:22:33 -0400 (EDT) Date: Fri, 27 Mar 2026 17:22:33 -0400 From: Andres Freund To: Heikki Linnakangas Cc: Sami Imseih , Nathan Bossart , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Clean up NamedLWLockTranche stuff Message-ID: References: <47aaf57e-1b7b-4e12-bda2-0316081ff50e@iki.fi> <0ba6cb8c-a893-4445-b8fa-fa9f52be8f39@iki.fi> <1e1dd445-730e-40c9-b0f7-4d153bb013fb@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1e1dd445-730e-40c9-b0f7-4d153bb013fb@iki.fi> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2026-03-27 11:45:56 +0200, Heikki Linnakangas wrote: > Committed with that little change, thanks! This seems to have broken buildfarm animal batta: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=batta&dt=2026-03-27%2002%3A05%3A01 # Running: pg_rewind --debug --source-pgdata /home/admin/batta/buildroot/HEAD/pgsql.build/src/bin/pg_rewind/tmp_check/t_001_basic_standby_local_data/pgdata --target-pgdata /home/admin/batta/buildroot/HEAD/pgsql.build/src/bin/pg_rewind/tmp_check/t_001_basic_primary_local_data/pgdata --no-sync --config-file /home/admin/batta/buildroot/HEAD/pgsql.build/src/bin/pg_rewind/tmp_check/tmp_test_QbsG/primary-postgresql.conf.tmp pg_rewind: executing "/home/admin/batta/buildroot/HEAD/pgsql.build/tmp_install/home/admin/batta/buildroot/HEAD/inst/bin/postgres" for target server to complete crash recovery TRAP: failed Assert("MemoryContextIsValid(context)"), File: "mcxt.c", Line: 1270, PID: 230491 /home/admin/batta/buildroot/HEAD/pgsql.build/tmp_install/home/admin/batta/buildroot/HEAD/inst/bin/postgres(ExceptionalCondition+0x54)[0xaaaae186c204] /home/admin/batta/buildroot/HEAD/pgsql.build/tmp_install/home/admin/batta/buildroot/HEAD/inst/bin/postgres(MemoryContextAllocExtended+0x0)[0xaaaae18a2a24] /home/admin/batta/buildroot/HEAD/pgsql.build/tmp_install/home/admin/batta/buildroot/HEAD/inst/bin/postgres(RequestNamedLWLockTranche+0x6c)[0xaaaae16e7310] /home/admin/batta/buildroot/HEAD/pgsql.build/tmp_install/home/admin/batta/buildroot/HEAD/inst/bin/postgres(process_shmem_requests+0x28)[0xaaaae1881628] /home/admin/batta/buildroot/HEAD/pgsql.build/tmp_install/home/admin/batta/buildroot/HEAD/inst/bin/postgres(PostgresSingleUserMain+0xc4)[0xaaaae1701a34] /home/admin/batta/buildroot/HEAD/pgsql.build/tmp_install/home/admin/batta/buildroot/HEAD/inst/bin/postgres(main+0x6ac)[0xaaaae12a2adc] /lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0xe8)[0xffff99713dd8] /home/admin/batta/buildroot/HEAD/pgsql.build/tmp_install/home/admin/batta/buildroot/HEAD/inst/bin/postgres(+0xf2b98)[0xaaaae12a2b98] Aborted pg_rewind: error: postgres single-user mode in target cluster failed pg_rewind: detail: Command was: /home/admin/batta/buildroot/HEAD/pgsql.build/tmp_install/home/admin/batta/buildroot/HEAD/inst/bin/postgres --single -F -D /home/admin/batta/buildroot/HEAD/pgsql.build/src/bin/pg_rewind/tmp_check/t_001_basic_primary_local_data/pgdata -c config_file=/home/admin/batta/buildroot/HEAD/pgsql.build/src/bin/pg_rewind/tmp_check/tmp_test_QbsG/primary-postgresql.conf.tmp template1 < /dev/null Presumably the reason that batta failed is its special configuration: shared_preload_libraries = 'pg_stat_statements'; regress_dump_restore; wal_consistency_checking; compute_query_id = regress; --enable-injection-points Greetings, Andres Freund