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 1vvjHr-00GL18-13 for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Feb 2026 21:52:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vvjHo-00FhBp-3C for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Feb 2026 21:52:44 +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.96) (envelope-from ) id 1vvjHo-00FhBY-2H for pgsql-hackers@lists.postgresql.org; Thu, 26 Feb 2026 21:52:44 +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.98.2) (envelope-from ) id 1vvjHk-00000001SfY-1ike for pgsql-hackers@lists.postgresql.org; Thu, 26 Feb 2026 21:52:42 +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 61QLqYhU740034; Thu, 26 Feb 2026 16:52:34 -0500 From: Tom Lane To: Andrew Dunstan cc: jian he , Mahendra Singh Thalor , tushar , Vaibhav Dalvi , pgsql-hackers@lists.postgresql.org Subject: Re: Non-text mode for pg_dumpall In-reply-to: <84764ef6-2bcb-43f7-9037-d7b589857da9@dunslane.net> References: <3f22a8bb-29e8-40cc-97a1-309181da2c13@dunslane.net> <4022765f-38ee-48a3-b246-615b3f8e1c23@dunslane.net> <59d3616f-6d6d-40d5-87e2-e019e350b52d@dunslane.net> <7faf3a59-cfe1-45cb-a972-55e05560b414@dunslane.net> <2e7ada75-422c-4153-9437-ea0ce8d63521@dunslane.net> <84764ef6-2bcb-43f7-9037-d7! b589857da9@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Thu, 26 Feb 2026 09:02:48 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <740032.1772142754.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 26 Feb 2026 16:52:34 -0500 Message-ID: <740033.1772142754@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrew Dunstan writes: > pushed with a slight tweak. BF member pollock isn't pleased with 007_pg_dumpall: 026-02-26 20:18:10.389 UTC [14469:1] FATAL: could not create semaphores: = No space left on device 2026-02-26 20:18:10.389 UTC [14469:2] DETAIL: Failed system call was semg= et(668039, 17, 03600). 2026-02-26 20:18:10.389 UTC [14469:3] HINT: This error does *not* mean th= at you have run out of disk space. It occurs when either the system limit= for the maximum number of semaphore sets (SEMMNI), or the system wide max= imum number of semaphores (SEMMNS), would be exceeded. You need to raise = the respective kernel parameter. Alternatively, reduce PostgreSQL's consu= mption of semaphores by reducing its "max_connections" parameter. It looks to me like this is happening because the script creates a boatload of postmasters and doesn't bother to shut any of them down (until that happens implicitly at script end). That seems rather unfriendly to small BF machines in the first place, as well as for installations that might try to run multiple TAP scripts in parallel. It's probably eating an undue amount of disk space, as well. Is there a reason why the "foreach my $run (sort keys %pgdumpall_runs)" loop leaves the $target_nodes running, instead of cleaning each one up at the bottom of the loop? regards, tom lane