From: | Harald Fuchs <hf517(at)protecting(dot)net> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pg_dump --comment? |
Date: | 2004-05-28 10:55:59 |
Message-ID: | pu3c5kvn0g.fsf@srv.protecting.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
In article <40B69F86(dot)2020002(at)bignerdranch(dot)com>,
Chris Campbell <chris(at)bignerdranch(dot)com> writes:
> I've encountered a situation where I'd like to store some information
> about the database when I do a pg_dump. For instance, the timestamp of
> the dump. And some other information that I pull from the database.
> If pg_dump had a --comment flag that allowed me to pass a string that
> would be stored inside the dumpfile, that I could then retrieve in
> some way (without doing a full restore of the dump), that would meet
> my needs. In discussing this idea with other people, it sounded like a
> general-use feature that mankind as a whole could benefit from. :)
Why don't you just do
( echo "-- This is my comment"
pg_dump whatever
) > dumpfile
?
From | Date | Subject | |
---|---|---|---|
Next Message | Gaetano Mendola | 2004-05-28 11:35:10 | Re: tablespaces and DB administration |
Previous Message | Andreas Pflug | 2004-05-28 10:33:47 | Re: tablespaces and DB administration |
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2004-05-28 11:04:05 | Re: Re : Win32 binaries test / pg_dump problem |
Previous Message | Cyril VELTER | 2004-05-28 10:18:57 | Re: Re : Win32 binaries test / pg_dump problem |