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 1v9MJn-00Gd4J-Gn for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Oct 2025 11:38:50 +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 1v9MJl-00CHu6-B7 for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Oct 2025 11:38:48 +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 1v9MJl-00CHtx-1K for pgsql-hackers@lists.postgresql.org; Thu, 16 Oct 2025 11:38:48 +0000 Received: from mout-p-202.mailbox.org ([80.241.56.172]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v9MJh-002W3s-1Q for pgsql-hackers@lists.postgresql.org; Thu, 16 Oct 2025 11:38:47 +0000 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4cnQvK0JVfz9tVm; Thu, 16 Oct 2025 13:38:37 +0200 (CEST) Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of cb@df7cb.de designates 2001:67c:2050:b231:465::102 as permitted sender) smtp.mailfrom=cb@df7cb.de Date: Thu, 16 Oct 2025 13:38:35 +0200 From: Christoph Berg To: Tomas Vondra , Jakub Wartak Cc: pgsql-hackers@lists.postgresql.org Subject: failed NUMA pages inquiry status: Operation not permitted Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="dtTMMoFAaZ2xgutH" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4cnQvK0JVfz9tVm List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --dtTMMoFAaZ2xgutH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > src/test/regress/expected/numa.out | 13 +++ > src/test/regress/expected/numa_1.out | 5 + numa_1.out is catching this error: ERROR: libnuma initialization failed or NUMA is not supported on this platform This is what I'm getting when running PG18 in docker on Debian trixie (libnuma 2.0.19). However, on older distributions, the error is different: postgres =# select * from pg_shmem_allocations_numa; ERROR: XX000: failed NUMA pages inquiry status: Operation not permitted LOCATION: pg_get_shmem_allocations_numa, shmem.c:691 This makes the numa regression tests fail in Docker on Debian bookworm (libnuma 2.0.16) and older and all of the Ubuntu LTS releases. The attached patch makes it accept these errors, but perhaps it would be better to detect it in pg_numa_available(). Christoph --dtTMMoFAaZ2xgutH Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-numa-Catch-Operation-not-permitted-error.patch"