https://github.com/temporalio/temporal/blob/main/common/persistence/sql/sqlplugin/postgresql/visibility.go#L115-L133 Created prepared statement is not closed. So every call to GetWorkflowExecution on vis path will leak prepared statement.
https://github.com/temporalio/temporal/blob/main/common/persistence/sql/sqlplugin/postgresql/visibility.go#L115-L133
Created prepared statement is not closed. So every call to GetWorkflowExecution on vis path will leak prepared statement.