M
M
Murad Kasp2021-02-15 21:42:40
PostgreSQL
Murad Kasp, 2021-02-15 21:42:40

Why does statement.execute hang when executing a query (long-term insert or update), although all data is successfully saved on the server?

Good afternoon! Faced such a situation, there is a java + jdbc service that performs data transfer between two tables of different databases using the postgres_fdw library. The initial table is about 2 GB, the transfer time is just over 10 minutes. Well, the process on the service hangs when executing statement.execute, although in fact, judging by the monitoring of postgres requests, the data was successfully transferred and the process on the server was also successfully completed.
I would like to understand what could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Murad Kasp, 2021-02-16
@murakas

The question is removed, in order that the connection would not fall off, you need to set the jdbc driver property cancelSignalTimeout = 10000

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question