MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

MethodPodName
PodName returns the K8s pod name recorded for this worker.
controlplane/configstore/lifecycle_types.go:50
MethodPollFlightInfo
(ctx context.Context, in *flight.FlightDescriptor, opts ...grpc.CallOption)
controlplane/session_mgr_drain_test.go:444
MethodPostPeers
PostPeers is FetchPeers for a mutating action — same discovery, concurrency, timeouts, and scope=local recursion guard, but with POST.
controlplane/live_aggregator.go:95
MethodPostPeers
(_ context.Context, path string)
controlplane/admin/live_aggregate_test.go:113
FunctionProbeMetadataStore
ProbeMetadataStore does a real end-to-end connect to the metadata Postgres and runs SELECT 1 to confirm the path is reachable from a CP pod. Purpose:
controlplane/provisioner/metadata_probe.go:43
FunctionProgressBar
({ percentage, stalled, indeterminate, className, }: { percentage?: number; stalled?: boolean; i
controlplane/admin/ui/src/components/ProgressBar.tsx:5
MethodProtocol
()
tests/scenario/perf/adapter_test.go:329
MethodProtocol
()
tests/perf/core/runner.go:13
MethodProtocol
()
tests/perf/core/runner_test.go:14
MethodProtocol
()
tests/perf/drivers/pgwire/driver.go:34
MethodProtocol
()
tests/perf/drivers/flight/driver.go:85
MethodProtocolForPID
ProtocolForPID returns the wire protocol ("postgres"/"flight") for a session, or "" if not found. O(1) lookup for the admin live-query detail view.
controlplane/session_mgr.go:967
MethodProvision
Provision is the all-or-nothing entrypoint for POST /provision: one configstore transaction wrapping warehouse + root-user writes. Partial failure rol
controlplane/provisioning/store.go:182
MethodProvision
(req ProvisionRequest)
controlplane/provisioning/api_test.go:96
MethodPruneWorkerSpawnLog
(olderThan time.Time)
controlplane/headroom_test.go:61
MethodPruneWorkerSpawnLog
PruneWorkerSpawnLog deletes spawn-log rows older than the cutoff (the sizing window). Called from the leader-only headroom reconcile; returns the numb
controlplane/configstore/spawn_log.go:71
FunctionPublishRunDir
(ctx context.Context, cfg Config, runDir string)
tests/perf/publisher/publisher.go:92
MethodPutSecret
PutSecret implements server.UserSecretManager. With ifNotExists set, an already-stored name is left untouched (DuckDB no-ops the live session for IF N
controlplane/user_secrets.go:56
MethodPutSecret
(_ context.Context, orgID, username, name, stmt string, ifNotExists bool)
server/conn_user_secrets_test.go:23
MethodQuery
(string, ...any)
server/conn_test.go:1417
MethodQuery
(string, ...any)
server/conn_test.go:1453
MethodQuery
(string, ...any)
server/conn_test.go:1505
MethodQuery
(string, ...any)
server/conn_test.go:1551
MethodQuery
(string, ...any)
server/session_database_metadata_test.go:36
MethodQuery
(query string, args ...any)
server/executor.go:50
MethodQuery
(query string, args ...any)
server/executor.go:110
MethodQuery
(string, ...any)
server/query_source_test.go:113
MethodQuery
(query string, _ ...any)
server/conn_describe_test.go:25
MethodQuery
(string, ...any)
server/profiling_test.go:171
MethodQuery
(query string, args ...any)
server/conn_querylog_feedback_test.go:27
MethodQuery
(string, ...any)
server/conn_passthrough_test.go:27
MethodQuery
(string, ...any)
server/session_database_metadata_remote_test.go:27
MethodQuery
(_ string, _ ...any)
server/conn_querylog_lifecycle_test.go:64
MethodQuery
(string, ...any)
server/conn_skip_until_sync_test.go:56
MethodQuery
(string, ...any)
server/conn_cleanup_test.go:23
MethodQuery
(string, ...any)
server/sessionmeta/sessionmeta_test.go:31
MethodQuery
(query string, args ...any)
server/flightclient/flight_executor.go:288
MethodQueryContext
(context.Context, string, ...any)
server/conn_test.go:1411
MethodQueryContext
(context.Context, string, ...any)
server/conn_test.go:1437
MethodQueryContext
(context.Context, string, ...any)
server/conn_test.go:1496
MethodQueryContext
(context.Context, string, ...any)
server/conn_test.go:1530
MethodQueryContext
(_ context.Context, query string, args ...any)
server/session_database_metadata_test.go:23
MethodQueryContext
(ctx context.Context, query string, args ...any)
server/executor.go:38
MethodQueryContext
(ctx context.Context, query string, args ...any)
server/executor.go:98
MethodQueryContext
(context.Context, string, ...any)
server/query_source_test.go:106
MethodQueryContext
(context.Context, string, ...any)
server/conn_describe_test.go:17
MethodQueryContext
(context.Context, string, ...any)
server/profiling_test.go:163
MethodQueryContext
(_ context.Context, _ string, _ ...any)
server/conn_querylog_feedback_test.go:19
MethodQueryContext
(context.Context, string, ...any)
server/conn_passthrough_test.go:18
MethodQueryContext
(_ context.Context, query string, args ...any)
server/session_database_metadata_remote_test.go:17
MethodQueryContext
(_ context.Context, _ string, _ ...any)
server/conn_querylog_lifecycle_test.go:56
MethodQueryContext
(context.Context, string, ...any)
server/conn_skip_until_sync_test.go:48
MethodQueryContext
(context.Context, string, ...any)
server/conn_cleanup_test.go:14
MethodQueryContext
(_ context.Context, _ string, _ ...any)
server/sessionmeta/sessionmeta_test.go:18
MethodQueryContext
(context.Context, string, ...any)
server/flightsqlingress/ingress_test.go:73
MethodQueryContext
(context.Context, string, ...any)
server/flightsqlingress/ingress_test.go:106
FunctionQueryDetailDialog
({ workerId, onClose, onCancel, }: { workerId: number | null; onClose: () => void; onCancel: (work
controlplane/admin/ui/src/components/QueryDetailDialog.tsx:30
MethodQueryDetailForWorkerID
QueryDetailForWorkerID expands one in-flight query, addressed by its cluster-unique worker id: the redacted SQL text + conn metadata from the local PG
controlplane/admin_providers.go:78
MethodQueryDetailForWorkerID
(wid int)
controlplane/admin/live_aggregate_test.go:38
MethodQueryLogger
QueryLogger returns the server's query logger (may be nil).
server/exports.go:364
FunctionQuoteIdentifier
(s string)
server/sqlcore/identifier.go:61
MethodRead
([]byte)
server/conn_passthrough_test.go:50
FunctionReadRow
({ label, value }: { label: string; value: unknown })
controlplane/admin/ui/src/pages/OrgDetail.tsx:606
MethodReady
()
server/conn_user_secrets_test.go:22
MethodRecentErrors
RecentErrors returns up to limit of this replica's most recent redacted query errors (newest first), mapped from the PG server's in-memory ring. The a
controlplane/admin_providers.go:199
MethodRecentErrors
(int)
controlplane/admin/live_aggregate_test.go:55
MethodReconnectFlightWorker
(ctx context.Context, workerID int, ownerEpoch int64)
controlplane/session_mgr_drain_test.go:320
MethodReconnectFlightWorkerProfile
(ctx context.Context, workerID int, ownerEpoch int64)
controlplane/session_mgr_drain_test.go:335
MethodReconnectSession
(ctx context.Context, record DurableSessionRecord)
server/flightsqlingress/ingress_test.go:229
MethodRecord
Record adds one connection's usage to the in-process counter, bucketed by connection-end time. Best-effort: a zero/unknown size is a no-op. Never erro
controlplane/compute_meter.go:84
MethodRecord
Record returns a copy of the underlying WorkerRecord. Provided for callers that still need to thread the record through legacy APIs during the lifecyc
controlplane/configstore/lifecycle_types.go:78
MethodRecord
Record appends an entry. A failure to persist is returned to the caller. The impersonation handler logs a failed audit write loudly (slog.Error) but d
controlplane/admin/audit.go:61
MethodRecord
(result perfcore.QueryResult)
tests/scenario/perf/steps.go:194
MethodRecord
(r QueryResult)
tests/perf/core/runner_test.go:27
FunctionRecordSuccessfulAuthAttempt
RecordSuccessfulAuthAttempt clears failure tracking after successful auth.
server/auth/policy.go:46
MethodRecordWorkerSpawn
(orgID string, cpuMillis, memBytes int64)
controlplane/headroom_test.go:52
MethodRecordWorkerSpawn
RecordWorkerSpawn appends one row to the worker spawn log. Called best-effort at pod create — the caller logs and drops on error; a log failure must n
controlplane/configstore/spawn_log.go:22
MethodRecv
()
controlplane/session_mgr_drain_test.go:474
MethodRecv
()
duckdbservice/copy_from_stdin_test.go:75
MethodRecv
()
duckdbservice/copy_from_stdin_test.go:94
MethodRecvMsg
(m any)
controlplane/session_mgr_drain_test.go:493
MethodRecvMsg
(m any)
controlplane/session_mgr_drain_test.go:505
MethodRecvMsg
(m any)
duckdbservice/copy_from_stdin_test.go:70
MethodRefreshCredentials
RefreshCredentials brokers a fresh STS session for the worker's org and re-sends ActivateTenant so the worker's DuckDB ducklake_s3 secret picks up the
controlplane/shared_worker_activator.go:257
MethodRelease
(ctx context.Context)
controlplane/org_router_test.go:57
MethodRelease
(ctx context.Context)
controlplane/session_mgr_drain_test.go:110
MethodRelease
(ctx context.Context)
controlplane/session_mgr_drain_test.go:119
MethodRelease
(ctx context.Context)
controlplane/session_mgr_drain_test.go:129
MethodRelease
(ctx context.Context)
controlplane/session_mgr_drain_test.go:144
MethodRelease
(ctx context.Context)
controlplane/session_mgr_drain_test.go:343
MethodRelease
(context.Context)
controlplane/org_reserved_pool_reconnect_test.go:32
MethodRelease
(context.Context)
controlplane/connection_limiter.go:143
MethodReleaseIdleHotWorkers
()
controlplane/org_router_test_helpers_test.go:16
MethodReleaseIdleHotWorkers
()
controlplane/flight_ingress_test.go:23
MethodReleaseIdleHotWorkers
()
controlplane/flight_ingress_test.go:40
MethodReleaseIdleHotWorkers
ReleaseIdleHotWorkers parks every Hot worker this CP owns that currently holds NO session into hot_idle, so the hot-idle TTL reaper (or a peer-CP take
controlplane/k8s_pool_lifecycle.go:233
MethodReleaseIdleHotWorkers
ReleaseIdleHotWorkers parks this CP's idle (zero-session) Hot workers into hot_idle so the TTL reaper can reclaim them, instead of letting them linger
controlplane/org_router.go:382
MethodReleaseIdleHotWorkers
()
controlplane/multitenant.go:61
MethodReleaseOrgConnectionLease
(leaseID string)
controlplane/session_mgr_drain_test.go:205
MethodReleaseOrgConnectionLease
(leaseID string)
controlplane/session_mgr_drain_test.go:243
← previousnext →3,501–3,600 of 5,901, ranked by callers