mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Backport #65771 to 24.3: PostgreSQL source support cancel query
This commit is contained in:
parent
297ceee4fc
commit
45f1361433
@ -191,6 +191,12 @@ PostgreSQLSource<T>::~PostgreSQLSource()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (stream)
|
||||
{
|
||||
tx->conn().cancel_query();
|
||||
stream->close();
|
||||
}
|
||||
|
||||
stream.reset();
|
||||
tx.reset();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user