Re: Non-text mode for pg_dumpall - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Non-text mode for pg_dumpall
Date
Msg-id 740033.1772142754@sss.pgh.pa.us
Whole thread Raw
In response to Re: Non-text mode for pg_dumpall  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: Non-text mode for pg_dumpall
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> 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 semget(668039, 17, 03600).
2026-02-26 20:18:10.389 UTC [14469:3] HINT:  This error does *not* mean that you have run out of disk space.  It occurs
wheneither the system limit for the maximum number of semaphore sets (SEMMNI), or the system wide maximum number of
semaphores(SEMMNS), would be exceeded.  You need to raise the respective kernel parameter.  Alternatively, reduce
PostgreSQL'sconsumption 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



pgsql-hackers by date:

Previous
From: Madhav Madhusoodanan
Date:
Subject: Re: [WiP] B-tree page merge during vacuum to reduce index bloat
Next
From: Jacob Champion
Date:
Subject: Re: [oauth] Stabilize the libpq-oauth ABI (and allow alternative implementations?)