Re: pg_restore COPY error handling - Mailing list pgsql-patches

From Andrew Dunstan
Subject Re: pg_restore COPY error handling
Date
Msg-id 1488.24.211.165.134.1138847609.squirrel@www.dunslane.net
Whole thread Raw
In response to Re: pg_restore COPY error handling  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pg_restore COPY error handling  (Stephen Frost <sfrost@snowman.net>)
List pgsql-patches
Tom Lane said:
>
> Also, it might be possible to depend on whether libpq has entered the
> "copy in" state.  I'm not sure this works very well, because if there's
> an error in the COPY command itself (not in the following data) then we
> probably don't ever get into "copy in" state.
>


Could we not refrain from sending data if we detect that we are not in copy
in state?

cheers

andrew




pgsql-patches by date:

Previous
From: Stephen Frost
Date:
Subject: Re: pg_restore COPY error handling
Next
From: Stephen Frost
Date:
Subject: Re: pg_restore COPY error handling