Re: pg_restore --no-post-data and --post-data-only - Mailing list pgsql-hackers

From Matteo Beccati
Subject Re: pg_restore --no-post-data and --post-data-only
Date
Msg-id 4EBF85D8.2090800@beccati.com
Whole thread Raw
In response to Re: pg_restore --no-post-data and --post-data-only  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Hi Andrew,

On 13/11/2011 02:56, Andrew Dunstan wrote:
> Here is a patch for that for pg_dump. The sections provided for are
> pre-data, data and post-data, as discussed elsewhere. I still feel that
> anything finer grained should be handled via pg_restore's --use-list
> functionality. I'll provide a patch to do the same switch for pg_restore
> shortly.
>
> Adding to the commitfest.

FWIW, I've tested the patch as I've recently needed to build a custom 
splitting script for a project and the patch seemed to be a much more 
elegant solution. As far as I can tell, it works great and the output 
matches the result of my script.

The only little thing I've noticed is a missing ending ")" in the --help 
message.


Cheers
-- 
Matteo Beccati

Development & Consulting - http://www.beccati.com/


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Re: [patch] Include detailed information about a row failing a CHECK constraint into the error message
Next
From: Peter Eisentraut
Date:
Subject: Re: FDW system columns