Re: A little pg_dump patch

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: info(at)enricopirozzi(dot)info
Cc: Enrico Pirozzi <sscotty71(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: A little pg_dump patch
Date: 2011-09-19 15:32:33
Message-ID: 4E776091.1090000@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 09/19/2011 11:23 AM, Enrico Pirozzi wrote:
>> What's the use case for not dumping comments? At first glance it seems a
>> very odd thing to do.
>>
>>
> I wrote this little patch, becuse my customer doesn't want to have
> comments on the production db. It's not my choice
>
>

Then use pg_restore --use-list to filter them out, and you won't need a
single line of C code to achieve your goal. The --use-list option gives
you very fine grained control over what gets restoresd and what does
not. Patching pg_dump like this seems like the wrong way to go.

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Enrico Pirozzi 2011-09-19 15:42:44 Re: A little pg_dump patch
Previous Message Enrico Pirozzi 2011-09-19 15:23:35 Re: A little pg_dump patch