Re: current transaction is aborted, commands ignored

Поиск
Список
Период
Сортировка
Искать
От
Thomas Kellerer
Тема
Re: current transaction is aborted, commands ignored
Дата
Msg-id
d41e0g$hpt$2@sea.gmane.org
Ответ на
Список
Дерево обсуждения
current transaction is aborted, commands ignored until end of transaction... Thomas Kellerer <spam_eater@gmx.net>
Re: current transaction is aborted, commands ignored Scott Marlowe <smarlowe@g2switchworks.com>
Re: current transaction is aborted, commands ignored Thomas Kellerer <spam_eater@gmx.net>
Re: current transaction is aborted, commands ignored until "Joshua D. Drake" <jd@commandprompt.com>
Re: current transaction is aborted, commands ignored until Thomas Kellerer <spam_eater@gmx.net>
Re: current transaction is aborted, commands ignored until Kris Jurka <books@ejurka.com>
Re: current transaction is aborted, commands ignored until Thomas Kellerer <spam_eater@gmx.net>
Scott Marlowe wrote on 19.04.2005 00:26:

>>One example would be when I drop a table (and it doesn't exist) I still 
>>want to run the following CREATE TABLE. But due to the error even the 
>>following valid command will fail.
>>This problem is not limited to DDL. When I try to write the result sets for 
>>several queries to disk it's the same problem, if e.g. the first select 
>>reports an error (e.g. due to a typo in the column list) all subsequent 
>>ones will no run as well.
 >
> You could try using rollback and save points.  set  savepoint before you
> drop the table, and if the drop fails, issue a rollback.

As I said, I'm aware of that, but I have to support different DBMS and this 
behaviour is pretty different to the other ones. The DDL stuff isn't that 
big of a problem, but the example with multiple selects is a bit more 
tricky to solve as I don't have control over the transaction handling.

Thanks for your answer, I guess I'll simply have to live with that.

Cheers
Thoams
В списке pgsql-general по дате отправления
От: Thomas Kellerer
Дата:
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Indexes in PostgreSQL
FAQ