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 1vaybp-00GnGM-2W for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Dec 2025 15:59: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 1vaybo-006pFK-15 for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Dec 2025 15:59:37 +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 1vaybo-006pFC-0E for pgsql-bugs@lists.postgresql.org; Wed, 31 Dec 2025 15:59:36 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vaybn-003WKo-1o for pgsql-bugs@lists.postgresql.org; Wed, 31 Dec 2025 15:59:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 5BVFxWCx3917070; Wed, 31 Dec 2025 10:59:32 -0500 From: Tom Lane To: evsi@amazon.com cc: pgsql-bugs@lists.postgresql.org, Andres Freund Subject: Re: BUG #19368: f54af9f does not create the correct macro for autotools build In-reply-to: <19368-016d79a7f3a1c599@postgresql.org> References: <19368-016d79a7f3a1c599@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Wed, 31 Dec 2025 00:25:09 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3917068.1767196772.1@sss.pgh.pa.us> Date: Wed, 31 Dec 2025 10:59:32 -0500 Message-ID: <3917069.1767196772@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > The commit f54af9f2679d added a macro HAVE_LIBURING_QUEUE_INIT_MEM that is > checked to see if slowdown from memory mappings can be avoided when using > io_uring. > This HAVE_LIBURING_QUEUE_INIT_MEM is set by Meson build after checking > liburing. > However, the autotools build seems to set a different macro, > HAVE_IO_URING_QUEUE_INIT_MEM, which is never used. > This means when the server is built with autotools, the slowdown when using > io_uring can never be avoided. This is indeed busted, but I'd argue that the autoconf build has the right macro name and meson and the C code are using the wrong one: if cc.has_function('io_uring_queue_init_mem', dependencies: liburing, args: test_c_args) cdata.set('HAVE_LIBURING_QUEUE_INIT_MEM', 1) endif That's clearly not following the "HAVE_function" convention. regards, tom lane