Joel Mc Graw <jpmcgraw1(at)home(dot)com> writes:
> I tried to run pg_dumpall and I got "strdup: failed to allocate
> memory". I tried to run it again and I get a segmentation fault.
Strange. Can you provide a debugger backtrace from the segfault?
Another thing that might be useful is to log the queries being sent
to the server, so we can see what the last few were. Easiest way
to do that is
export PGOPTIONS="-d2"
(or equivalent for whatever shell you use) before running pg_dump.
regards, tom lane