mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Merge pull request #65933 from ClickHouse/backport/24.5/65771
Backport #65771 to 24.5: PostgreSQL source support cancel query
This commit is contained in:
commit
4c542511fa
@ -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