Re: DDL hanging when different connection is left open

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: DDL hanging when different connection is left open
Дата
Msg-id 43D598C9.2070102@opencloud.com
обсуждение исходный текст
Ответ на DDL hanging when different connection is left open  (Nathan McEachen <nathan@mceachen.us>)
Ответы Re: DDL hanging when different connection is left open  (Nathan McEachen <nathan@mceachen.us>)
Список pgsql-jdbc
Nathan McEachen wrote:

> connection1 performes query: "SELECT * FROM my_table";
> connection 2 performs DDL: "ALTER TABLE my_table ADD COLUMN my_col
> INTEGER";
>
>
> connection 2 seems to hang unless connection1 is closed (i.e.
> conneciton1.close() ).

Most likely, connection 1 has autocommit off and you have forgotten to
commit or rollback the transaction that your SELECT opened.

-O

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

Предыдущее
От: Nathan McEachen
Дата:
Сообщение: DDL hanging when different connection is left open
Следующее
От: Nathan McEachen
Дата:
Сообщение: Re: DDL hanging when different connection is left open