Backport #65771 to 24.3: PostgreSQL source support cancel query

This commit is contained in:
robot-clickhouse 2024-07-01 14:07:42 +00:00
parent 297ceee4fc
commit 45f1361433

View File

@ -191,6 +191,12 @@ PostgreSQLSource<T>::~PostgreSQLSource()
{
try
{
if (stream)
{
tx->conn().cancel_query();
stream->close();
}
stream.reset();
tx.reset();
}