Re: pg_dumpall --exclude-database option - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: pg_dumpall --exclude-database option
Date
Msg-id alpine.DEB.2.21.1812272222130.32444@lancre
Whole thread Raw
In response to Re: pg_dumpall --exclude-database option  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
Responses Re: pg_dumpall --exclude-database option
List pgsql-hackers
Hello,

>> While poking around the dump output, I noticed some unrelated points:
>>
>> * Command "pg_dump" could tell which database is dumped in the output
>> Or "pg_dumpall" could issue a comment line in the output telling which
>> database is being considered.
>>
>> * The database dumps should have an introductory comment, like there
>> is one for roles
>
> I agree these are unrelated but would be nice to have. Probably having
> pg_dumpall do it would be better. Do you want to do a patch for that?

I do not "want" to do a patch for that:-) Anyway, a small patch is 
attached which adds comments to pg_dumpall output sections.

>> * On extensions, the dump creates both the extension and the extension
>> comment. However, ISTM that the extension comment is already created
>> by the extension, so this is redundant:

>> Maybe it should notice that the comment belongs to the extension and
>> need not be updated?
>
> What if the owner had updated the comment after installing the extension?

Hmmm… This point could apply to anything related to an extension, which 
could be altered by the owner in any way…

-- 
Fabien.
Attachment

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: Cache relation sizes?
Next
From: Alvaro Herrera
Date:
Subject: Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables)