Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PostHog/duckgres
/ functions
Functions
5,901 in github.com/PostHog/duckgres
⨍
Functions
5,901
◇
Types & classes
803
Method
PodName
PodName returns the K8s pod name recorded for this worker.
controlplane/configstore/lifecycle_types.go:50
Method
PollFlightInfo
(ctx context.Context, in *flight.FlightDescriptor, opts ...grpc.CallOption)
controlplane/session_mgr_drain_test.go:444
Method
PostPeers
PostPeers is FetchPeers for a mutating action — same discovery, concurrency, timeouts, and scope=local recursion guard, but with POST.
controlplane/live_aggregator.go:95
Method
PostPeers
(_ context.Context, path string)
controlplane/admin/live_aggregate_test.go:113
Function
ProbeMetadataStore
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
Function
ProgressBar
({ percentage, stalled, indeterminate, className, }: { percentage?: number; stalled?: boolean; i
controlplane/admin/ui/src/components/ProgressBar.tsx:5
Method
Protocol
()
tests/scenario/perf/adapter_test.go:329
Method
Protocol
()
tests/perf/core/runner.go:13
Method
Protocol
()
tests/perf/core/runner_test.go:14
Method
Protocol
()
tests/perf/drivers/pgwire/driver.go:34
Method
Protocol
()
tests/perf/drivers/flight/driver.go:85
Method
ProtocolForPID
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
Method
Provision
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
Method
Provision
(req ProvisionRequest)
controlplane/provisioning/api_test.go:96
Method
PruneWorkerSpawnLog
(olderThan time.Time)
controlplane/headroom_test.go:61
Method
PruneWorkerSpawnLog
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
Function
PublishRunDir
(ctx context.Context, cfg Config, runDir string)
tests/perf/publisher/publisher.go:92
Method
PutSecret
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
Method
PutSecret
(_ context.Context, orgID, username, name, stmt string, ifNotExists bool)
server/conn_user_secrets_test.go:23
Method
Query
(string, ...any)
server/conn_test.go:1417
Method
Query
(string, ...any)
server/conn_test.go:1453
Method
Query
(string, ...any)
server/conn_test.go:1505
Method
Query
(string, ...any)
server/conn_test.go:1551
Method
Query
(string, ...any)
server/session_database_metadata_test.go:36
Method
Query
(query string, args ...any)
server/executor.go:50
Method
Query
(query string, args ...any)
server/executor.go:110
Method
Query
(string, ...any)
server/query_source_test.go:113
Method
Query
(query string, _ ...any)
server/conn_describe_test.go:25
Method
Query
(string, ...any)
server/profiling_test.go:171
Method
Query
(query string, args ...any)
server/conn_querylog_feedback_test.go:27
Method
Query
(string, ...any)
server/conn_passthrough_test.go:27
Method
Query
(string, ...any)
server/session_database_metadata_remote_test.go:27
Method
Query
(_ string, _ ...any)
server/conn_querylog_lifecycle_test.go:64
Method
Query
(string, ...any)
server/conn_skip_until_sync_test.go:56
Method
Query
(string, ...any)
server/conn_cleanup_test.go:23
Method
Query
(string, ...any)
server/sessionmeta/sessionmeta_test.go:31
Method
Query
(query string, args ...any)
server/flightclient/flight_executor.go:288
Method
QueryContext
(context.Context, string, ...any)
server/conn_test.go:1411
Method
QueryContext
(context.Context, string, ...any)
server/conn_test.go:1437
Method
QueryContext
(context.Context, string, ...any)
server/conn_test.go:1496
Method
QueryContext
(context.Context, string, ...any)
server/conn_test.go:1530
Method
QueryContext
(_ context.Context, query string, args ...any)
server/session_database_metadata_test.go:23
Method
QueryContext
(ctx context.Context, query string, args ...any)
server/executor.go:38
Method
QueryContext
(ctx context.Context, query string, args ...any)
server/executor.go:98
Method
QueryContext
(context.Context, string, ...any)
server/query_source_test.go:106
Method
QueryContext
(context.Context, string, ...any)
server/conn_describe_test.go:17
Method
QueryContext
(context.Context, string, ...any)
server/profiling_test.go:163
Method
QueryContext
(_ context.Context, _ string, _ ...any)
server/conn_querylog_feedback_test.go:19
Method
QueryContext
(context.Context, string, ...any)
server/conn_passthrough_test.go:18
Method
QueryContext
(_ context.Context, query string, args ...any)
server/session_database_metadata_remote_test.go:17
Method
QueryContext
(_ context.Context, _ string, _ ...any)
server/conn_querylog_lifecycle_test.go:56
Method
QueryContext
(context.Context, string, ...any)
server/conn_skip_until_sync_test.go:48
Method
QueryContext
(context.Context, string, ...any)
server/conn_cleanup_test.go:14
Method
QueryContext
(_ context.Context, _ string, _ ...any)
server/sessionmeta/sessionmeta_test.go:18
Method
QueryContext
(context.Context, string, ...any)
server/flightsqlingress/ingress_test.go:73
Method
QueryContext
(context.Context, string, ...any)
server/flightsqlingress/ingress_test.go:106
Function
QueryDetailDialog
({ workerId, onClose, onCancel, }: { workerId: number | null; onClose: () => void; onCancel: (work
controlplane/admin/ui/src/components/QueryDetailDialog.tsx:30
Method
QueryDetailForWorkerID
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
Method
QueryDetailForWorkerID
(wid int)
controlplane/admin/live_aggregate_test.go:38
Method
QueryLogger
QueryLogger returns the server's query logger (may be nil).
server/exports.go:364
Function
QuoteIdentifier
(s string)
server/sqlcore/identifier.go:61
Method
Read
([]byte)
server/conn_passthrough_test.go:50
Function
ReadRow
({ label, value }: { label: string; value: unknown })
controlplane/admin/ui/src/pages/OrgDetail.tsx:606
Method
Ready
()
server/conn_user_secrets_test.go:22
Method
RecentErrors
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
Method
RecentErrors
(int)
controlplane/admin/live_aggregate_test.go:55
Method
ReconnectFlightWorker
(ctx context.Context, workerID int, ownerEpoch int64)
controlplane/session_mgr_drain_test.go:320
Method
ReconnectFlightWorkerProfile
(ctx context.Context, workerID int, ownerEpoch int64)
controlplane/session_mgr_drain_test.go:335
Method
ReconnectSession
(ctx context.Context, record DurableSessionRecord)
server/flightsqlingress/ingress_test.go:229
Method
Record
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
Method
Record
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
Method
Record
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
Method
Record
(result perfcore.QueryResult)
tests/scenario/perf/steps.go:194
Method
Record
(r QueryResult)
tests/perf/core/runner_test.go:27
Function
RecordSuccessfulAuthAttempt
RecordSuccessfulAuthAttempt clears failure tracking after successful auth.
server/auth/policy.go:46
Method
RecordWorkerSpawn
(orgID string, cpuMillis, memBytes int64)
controlplane/headroom_test.go:52
Method
RecordWorkerSpawn
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
Method
Recv
()
controlplane/session_mgr_drain_test.go:474
Method
Recv
()
duckdbservice/copy_from_stdin_test.go:75
Method
Recv
()
duckdbservice/copy_from_stdin_test.go:94
Method
RecvMsg
(m any)
controlplane/session_mgr_drain_test.go:493
Method
RecvMsg
(m any)
controlplane/session_mgr_drain_test.go:505
Method
RecvMsg
(m any)
duckdbservice/copy_from_stdin_test.go:70
Method
RefreshCredentials
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
Method
Release
(ctx context.Context)
controlplane/org_router_test.go:57
Method
Release
(ctx context.Context)
controlplane/session_mgr_drain_test.go:110
Method
Release
(ctx context.Context)
controlplane/session_mgr_drain_test.go:119
Method
Release
(ctx context.Context)
controlplane/session_mgr_drain_test.go:129
Method
Release
(ctx context.Context)
controlplane/session_mgr_drain_test.go:144
Method
Release
(ctx context.Context)
controlplane/session_mgr_drain_test.go:343
Method
Release
(context.Context)
controlplane/org_reserved_pool_reconnect_test.go:32
Method
Release
(context.Context)
controlplane/connection_limiter.go:143
Method
ReleaseIdleHotWorkers
()
controlplane/org_router_test_helpers_test.go:16
Method
ReleaseIdleHotWorkers
()
controlplane/flight_ingress_test.go:23
Method
ReleaseIdleHotWorkers
()
controlplane/flight_ingress_test.go:40
Method
ReleaseIdleHotWorkers
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
Method
ReleaseIdleHotWorkers
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
Method
ReleaseIdleHotWorkers
()
controlplane/multitenant.go:61
Method
ReleaseOrgConnectionLease
(leaseID string)
controlplane/session_mgr_drain_test.go:205
Method
ReleaseOrgConnectionLease
(leaseID string)
controlplane/session_mgr_drain_test.go:243
← previous
next →
3,501–3,600 of 5,901, ranked by callers