queryContextForCursor returns a cancellable context without a disconnect monitor. Cursors are long-lived and span multiple message loop iterations, so the monitor cannot be used — it would race with readMessage on the bufio.Reader between FETCH calls. Disconnect detection still works via c.ctx cance
()
| 317 | // hot-idle after the session ends. Only flipped by applyWorkerTTLSetting |
| 318 | // AFTER the control plane stamped the value on the bound worker, so SHOW |
| 319 | // never reports a TTL the worker won't park with. workerTTLCtl is the |
| 320 | // control-plane capability behind the GUC (nil outside the remote/k8s |
| 321 | // backend, where SET/SHOW are session-state-only). See conn_worker_ttl.go. |
| 322 | workerTTLOverride *time.Duration |
| 323 | workerTTLCtl *WorkerTTLControl |
| 324 |
no test coverage detected