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 1tpal6-008a7u-L6 for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Mar 2025 22:29:04 +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 1tpal5-009sMn-BA for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Mar 2025 22:29:03 +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 1tpal5-009sKv-1L for pgsql-hackers@lists.postgresql.org; Tue, 04 Mar 2025 22:29:03 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tpal1-000ytt-2B for pgsql-hackers@lists.postgresql.org; Tue, 04 Mar 2025 22:29:02 +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 524MStcP200086; Tue, 4 Mar 2025 17:28:55 -0500 From: Tom Lane To: Andrew Dunstan cc: Andres Freund , Tomas Vondra , Jakub Wartak , Robert Haas , PostgreSQL Hackers Subject: Re: scalability bottlenecks with (many) partitions (and more) In-reply-to: <8a1a5c10-0644-4ea0-a9e8-73d3a2908e18@dunslane.net> References: <7c1eeafb-2375-4ff6-8469-0640d52d44ed@vondra.me> <5xahykogf2sg3ofdqk2li7xx3t2vh23m42jnvfwxoi5fhh7iya@girlhoxdxjzc> <486baeb2-2adc-48d2-ba9d-13c4ae43301c@vondra.me> <733e72fa-5fc2-48fc-ab1f-1d8f1ab387c3@vondra.me> <193453.1741123834@sss.pgh.pa.us> <197167.1741125678@sss.pgh.pa.us> <8a1a5c10-0644-4ea0-a9e8-73d3a2908e18@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Tue, 04 Mar 2025 17:09:43 -0500" MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" Content-ID: <199832.1741127288.0@sss.pgh.pa.us> Date: Tue, 04 Mar 2025 17:28:55 -0500 Message-ID: <200085.1741127335@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <199832.1741127288.1@sss.pgh.pa.us> Andrew Dunstan writes: > I think I found a logic bug. Testing. Not sure what you are looking at, but I was trying to fix it by making the loop over test modules skip unbuilt modules, borrowing the test you added in v19 to skip unbuilt contrib modules. It's a little more complicated for the other modules because some of them have no .c files to be built, and I could not get that to work. I eventually concluded that there's something wrong with the "scalar glob()" idiom you used. A bit of googling suggested "grep -e, glob()" instead, and that seems to work for me. sifaka seems happy with the attached patch. regards, tom lane ------- =_aaaaaaaaaa0 Content-Type: text/x-diff; name="run-build-fix.patch"; charset="us-ascii" Content-ID: <199832.1741127288.2@sss.pgh.pa.us> Content-Description: run-build-fix.patch --- run_build.pl~ 2025-03-04 16:34:04.082252563 -0500 +++ run_build.pl 2025-03-04 16:35:25.967357487 -0500 @@ -2483,6 +2483,11 @@ sub run_misc_tests my $testname = basename($testdir); next if $testname =~ /ssl/ && !$using_ssl; next unless -d "$testdir/t"; + + # can't test it if we haven't built it + next unless grep -e, glob("$testdir/*.o $testdir/*.obj") + or not grep -e, glob("$testdir/*.c"); + next if $using_msvc && $testname eq 'pg_bsd_indent'; next unless step_wanted("module-$testname"); print time_str(), "running misc test module-$testname ...\n" @@ -2496,7 +2501,7 @@ sub run_misc_tests my $testname = basename($testdir); # can't test it if we haven't built it - next unless scalar glob("$testdir/*.o $testdir/*.obj"); + next unless grep -e, glob("$testdir/*.o $testdir/*.obj"); # skip sepgsql unless it's marked for testing next if $testname eq 'sepgsql' && $ENV{PG_TEST_EXTRA} !~ /\bsepgsql\b/; ------- =_aaaaaaaaaa0--