Thanks to visit codestin.com
Credit goes to postgrespro.com

pg_restore COPY error handling - Mailing list pgsql-patches

From Stephen Frost
Subject pg_restore COPY error handling
Date
Msg-id [email protected]
Whole thread Raw
Responses Re: pg_restore COPY error handling
List pgsql-patches
* Stephen Frost ([email protected]) 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