Re: BUG #2812: Transaction is aborted after error

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #2812: Transaction is aborted after error
Дата
Msg-id 20061206224247.GJ30502@alvh.no-ip.org
обсуждение исходный текст
Ответ на BUG #2812: Transaction is aborted after error  ("Alex Piyevsky" <Alex_Piyevsky@ibi.com>)
Список pgsql-bugs
Alex Piyevsky wrote:

> We issue a command which drops the existing table and recreates the table
> under the same name, all in one transaction.  If the table does not
> previously exist, an error message is returned for the drop command and the
> transaction aborts with the following:
>
> current transaction is aborted, commands ignored until end of transaction
> block

This is the intended behavior.  In 8.2 you can use "DROP TABLE IF
EXISTS".  In previous versions you can set a savepoint before the DROP
TABLE; or you can do the DROP TABLE outside the transaction.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: "Alex Piyevsky"
Дата:
Сообщение: BUG #2812: Transaction is aborted after error
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2811: Error determining param type in prepared statement of unused variable