> On 27 Sep 2023, at 10:43, Patrick Frießnegg <patrick.fri@gmail.com> wrote:
> root@13fba0e113c7:/# pg_dumpall
> popen failure: Cannot allocate memory
> pg_dumpall: error: program "pg_dump" is needed by pg_dumpall but was not found in the same directory as
"/usr/lib/postgresql/15/bin/pg_dumpall"
pg_dumpall runs the pg_dump binary, so when starting up it locates and tries to
execute pg_dump to check its version. The above error indicates that the
binary does indeed exist, but when trying to execute it there is a problem with
the popen() call. A quick search reveals that this has been reported against
Docker (and has been fixed it seems):
https://github.com/docker-library/postgres/issues/1103
As this is not a bug in postgres, pgsql-general is probably a better
mailinglist to use for help.
--
Daniel Gustafsson