Re: pg_restore COPY error handling

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: pg_restore COPY error handling
Дата
Msg-id 1488.24.211.165.134.1138847609.squirrel@www.dunslane.net
обсуждение исходный текст
Ответ на Re: pg_restore COPY error handling  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pg_restore COPY error handling  (Stephen Frost <sfrost@snowman.net>)
Список 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 по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: pg_restore COPY error handling
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: pg_restore COPY error handling