Re: Custom format for pg_dumpall - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Custom format for pg_dumpall
Date
Msg-id 22988.1079362854@sss.pgh.pa.us
Whole thread Raw
In response to Re: Custom format for pg_dumpall  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Custom format for pg_dumpall  (Philip Warner <pjw@rhyme.com.au>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Christopher Kings-Lynne wrote:
>> Why is there no custom format dump option for pg_dumpall?

> I think it is because we have no mechanism to merge multiple custom
> format files from different databases into a single file.  Perhaps this
> is a TODO.

It would probably require changes in pg_dump to append custom-format
output to an existing file, but offhand I see no fundamental obstacle
now that pg_dumpall is a C program.  (I think it would've been real
painful to construct an archive from a shell script...)  I'm envisioning
some super-archive format in which there are individual entries
containing the pg_dump output for each database, plus an entry for the
"global" users-and-groups info.

This does seem like a nice solution to the perennial problem of dumping
blobs easily.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Further thoughts about warning for costly FK checks
Next
From: Fernando Nasser
Date:
Subject: Re: Log rotation