MCPcopy Create free account
hub / github.com/PostHog/duckgres / queryContextForCursor

Method queryContextForCursor

server/conn.go:319–321  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers 1

openCursorMethod · 0.95

Calls 1

queryContextInnerMethod · 0.95

Tested by

no test coverage detected