Re: DDL hanging when different connection is left open - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: DDL hanging when different connection is left open
Date
Msg-id 43D598C9.2070102@opencloud.com
Whole thread Raw
In response to DDL hanging when different connection is left open  (Nathan McEachen <nathan@mceachen.us>)
Responses Re: DDL hanging when different connection is left open
List 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 by date:

Previous
From: Nathan McEachen
Date:
Subject: DDL hanging when different connection is left open
Next
From: Nathan McEachen
Date:
Subject: Re: DDL hanging when different connection is left open