Re: [PATCHES] Continue transactions after errors in psql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCHES] Continue transactions after errors in psql
Дата
Msg-id 2082.1114527469@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCHES] Continue transactions after errors in psql  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-hackers
"Joshua D. Drake" <jd@commandprompt.com> writes:
>> BEGIN;
>> \begin_ignore_error
>> DROP TABLE foo;
>> \end_ignore_error
>> CREATE ...
>> ...
>> COMMIT;

> That seems awful noisy. Why not just:

>        BEGIN:
>        DROP TABLE foo;
>        ERROR: table foo does not exist;
>        CONTINUE;
>        etc....

Well, ignoring questions of how we choose to spell the commands, the
thing I'd not like about the second alternative is that it doesn't
afford any control over the number of statements rolled back upon
error.

            regards, tom lane

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: Re: btree_gist regression tests failing in 8.0 branch?
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: [PATCHES] Continue transactions after errors in psql