pg_restore COPY error handling - Mailing list pgsql-patches

From Stephen Frost
Subject pg_restore COPY error handling
Date
Msg-id 20060121195920.GO6026@ns.snowman.net
Whole thread Raw
Responses Re: pg_restore COPY error handling  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
* Stephen Frost (sfrost@snowman.net) wrote:
> Needs to be changed to handle whitespace in front of the actual 'COPY',
> unless someone else has a better idea.  This should be reasonably
> trivial to do though...  If you'd like me to make that change and send
> in a new patch, just let me know.

Fixed, using isspace().  Also added an output message to make it a bit
clearer when a failed COPY has been detected, etc.

Updated patch attached.

    Thanks,

        Stephen

Attachment

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Inconsistent syntax in GRANT
Next
From: Peter Eisentraut
Date:
Subject: postmaster/postgres merge for testing