PrepareStatement.execute() blocked because of long time 'create index' operation, connection leak - Mailing list pgsql-jdbc

From jingzhi.zhang@outlook.com
Subject PrepareStatement.execute() blocked because of long time 'create index' operation, connection leak
Date
Msg-id BLU437-SMTP10F2FDBD2E377E73A45234F95C0@phx.gbl
Whole thread Raw
In response to Re: Re: Batches of single-insert statements vs batches of multi-insert statements  (Dave Cramer <pg@fastcrypt.com>)
Responses Re: PrepareStatement.execute() blocked because of long time 'create index' operation, connection leak
Re: PrepareStatement.execute() blocked because of long time'create index' operation, connection leak
List pgsql-jdbc
Hi,


I use jdbc  to create index on a table, the sql of 'create index' cost about 30 minutes.
Finally I found, the jdbc client thread blocked at PrepareStatement.execute(), not finished.
At server side, query pg_stat_activity, the connection state already be ‘idle’ (index creation finished).

Is there any suggestion? How to deal with the client thread blocking (read for a response message?) and connection leak.


Thanks a lot.


pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: Re: Batches of single-insert statements vs batches ofmulti-insert statements
Next
From: "jingzhi.zhang@outlook.com"
Date:
Subject: PrepareStatement.execute() blocked because of long time 'create index' operation, connection leak