Skip to content

Commit 6f1f544

Browse files
authored
pg wire bypasses rpc layer and doesn't perform attach call (#1916)
1 parent 2521715 commit 6f1f544

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ydb/core/kqp/proxy_service/kqp_proxy_service.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,11 @@ class TKqpProxyService : public TActorBootstrapped<TKqpProxyService> {
654654
if (queryType == NKikimrKqp::QUERY_TYPE_SQL_GENERIC_QUERY ||
655655
queryType == NKikimrKqp::QUERY_TYPE_SQL_GENERIC_CONCURRENT_QUERY) {
656656

657-
if (explicitSession && sessionInfo && !sessionInfo->AttachedRpcId) {
657+
if (explicitSession &&
658+
sessionInfo &&
659+
!sessionInfo->PgWire && // pg wire bypasses rpc layer and doesn't perform attach
660+
!sessionInfo->AttachedRpcId)
661+
{
658662
TString error = "Attempt to execute query on explicit session without attach";
659663
ReplyProcessError(Ydb::StatusIds::BAD_REQUEST, error, requestId);
660664
return;

0 commit comments

Comments
 (0)