MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

↓ 3 callersFunctionmetricGaugeFamilyLabelValue
(t *testing.T, metricName string, labels map[string]string)
controlplane/pool_metrics_test.go:287
↓ 3 callersFunctionmetricGaugeValue
(t *testing.T, metricName string)
controlplane/metrics_test_helpers_test.go:10
↓ 3 callersFunctionmodelDescriptors
modelDescriptors returns the ordered registry of browsable models. Order is the sidebar order. Every persisted configstore model that an operator migh
controlplane/admin/models_api.go:62
↓ 3 callersFunctionnewFlightValidator
(t *testing.T, mode string, store *fakeConfigStore)
controlplane/sni_kubernetes_test.go:186
↓ 3 callersFunctionnewGormAPIStore
(store *configstore.ConfigStore)
controlplane/admin/api.go:154
↓ 3 callersFunctionnewHealthHandler
(isHealthy func() bool)
controlplane/multitenant.go:654
↓ 3 callersFunctionnewOrgAcquireGate
()
controlplane/org_acquire_gate.go:29
↓ 3 callersFunctionnewPipelineConn
(t *testing.T, executor QueryExecutor)
server/conn_skip_until_sync_test.go:168
↓ 3 callersFunctionnewPostgresConfigStore
(t *testing.T)
controlplane/admin/api_postgres_test.go:20
↓ 3 callersFunctionnewSTSBroker
newSTSBroker wires the cache/single-flight machinery around the given credential-minting func. Split from NewSTSBroker so tests can inject a fake.
controlplane/sts_broker.go:182
↓ 3 callersFunctionnewStderrStampedHandler
(level slog.Level)
internal/cliboot/logging.go:103
↓ 3 callersFunctionnewTestActivator
newTestActivator creates a SharedWorkerActivator with fake k8s secrets and configurable activation behavior for migration lock testing.
controlplane/migration_lock_test.go:40
↓ 3 callersFunctionnewTestWorker
(t *testing.T, id int, orgID string)
controlplane/migration_lock_test.go:108
↓ 3 callersFunctionnormalizeDriverValue
normalizeDriverValue runs every registered ValueNormalizer over the value. Each normalizer returns the input unchanged when it doesn't claim it; the f
server/value_normalize.go:40
↓ 3 callersFunctionnormalizeNextPath
(next string)
controlplane/admin/dashboard.go:155
↓ 3 callersFunctionnsFilter
()
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:336
↓ 3 callersFunctionobserveDrainTotalDuration
observeDrainTotalDuration records the wall-clock duration of one complete worker drain (Drain CAS + pod delete + RetireDrained CAS) inside ShutdownAll
controlplane/worker_lifecycle_metrics.go:325
↓ 3 callersFunctionobservedPools
()
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:166
↓ 3 callersFunctionobservedWorkerRecordMatchesCurrent
(observed, current *configstore.WorkerRecord)
controlplane/k8s_pool_test.go:461
↓ 3 callersMethodonPodTerminated
onPodTerminated handles a worker pod being terminated (crash, eviction, etc.). It closes the done channel on the corresponding ManagedWorker so the he
controlplane/k8s_pool_reconcile.go:383
↓ 3 callersMethodonStartedLeading
(ctx context.Context)
controlplane/leader_loop.go:19
↓ 3 callersMethodonStoppedLeading
()
controlplane/leader_loop.go:35
↓ 3 callersMethodonly
(t *testing.T, event string)
controlplane/provisioning/analytics_events_test.go:39
↓ 3 callersMethodopenFile
openFile opens a cached entry WITHOUT recording a hit. Used to serve a body that was just fetched on a miss — that path already counted a miss, so cou
cmd/cache-proxy/cache.go:298
↓ 3 callersFunctionopenSecretTestDB
(t *testing.T)
duckdbservice/user_secrets_test.go:13
↓ 3 callersFunctionorgName
(org *configstore.OrgConfig)
controlplane/shared_worker_activator.go:671
↓ 3 callersFunctionorgPath
(orgID, suffix string)
tests/scenario/provision/client.go:262
↓ 3 callersFunctionparseBasicCredentials
(authHeader string)
server/flightsqlingress/ingress.go:2035
↓ 3 callersFunctionparseExtensionName
parseExtensionName splits an extension string into its name and install command. For "cache_httpfs FROM community", returns ("cache_httpfs", "cache_ht
server/server.go:1353
↓ 3 callersFunctionparseK8sMemory
parseK8sMemory parses a Kubernetes memory string (e.g., "360Gi", "8Gi", "512Mi", "4GB") into bytes. Supports both IEC (Ki/Mi/Gi/Ti) and SI (KB/MB/GB/T
controlplane/control.go:1456
↓ 3 callersFunctionparseNumericTypmod
parseNumericTypmod parses precision and scale from a type name like "DECIMAL(10,2)" and encodes them as a PostgreSQL typmod: ((precision << 16) | scal
server/types.go:229
↓ 3 callersFunctionpasswordMessage
passwordMessage builds a client PasswordMessage ('p') for the given password.
server/worker_auth_test.go:12
↓ 3 callersFunctionpgDateFormatToStrftime
pgDateFormatToStrftime converts PostgreSQL date/time format specifiers to strftime/strptime format. Processes left-to-right with longest-match-first t
transpiler/transform/functions.go:559
↓ 3 callersFunctionpodReq
(pod: any)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:108
↓ 3 callersMethodpruneNodeFirstSeenLocked
pruneNodeFirstSeenLocked drops nodeName from the first-seen map when no remaining worker references it, to keep the map bounded as nodes turn over. Ca
controlplane/k8s_pool_acquire.go:774
↓ 3 callersFunctionpublishArtifacts
(ctx context.Context, cfg Config, db dbHandle, loaded artifacts)
tests/perf/publisher/publisher.go:246
↓ 3 callersFunctionput
(path: string, body: unknown)
controlplane/admin/ui/src/lib/api.ts:109
↓ 3 callersFunctionqueryIntPairs
(t *testing.T, db *sql.DB, query string)
tests/controlplane/ducklake_bool_merge_test.go:38
↓ 3 callersMethodqueryRows
(ctx context.Context, tx *sql.Tx, query string, args ...any)
duckdbservice/service.go:384
↓ 3 callersFunctionquoteIdentifier
(v string)
controlplane/configstore/store.go:808
↓ 3 callersFunctionquoteSQLStringLiteral
(value string)
server/sessionmeta/sessionmeta.go:910
↓ 3 callersMethodreadSecretValue
(ctx context.Context, ref configstore.SecretRef)
controlplane/shared_worker_activator.go:576
↓ 3 callersFunctionreadSystemMemoryBytes
readSystemMemoryBytes reads total physical memory from /proc/meminfo on Linux. Returns 0 if the file cannot be read or parsed (e.g., on non-Linux syst
server/sysinfo/sysinfo.go:32
↓ 3 callersMethodreapIdle
(now time.Time, trigger string)
server/flightsqlingress/ingress.go:1862
↓ 3 callersMethodreapStuckActivatingWorkers
reapStuckActivatingWorkers retires workers that have been in reserved or activating state for longer than the activating timeout.
controlplane/k8s_pool_lifecycle.go:857
↓ 3 callersFunctionreconcilePods
(container: HTMLElement, list: [any, string][])
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:427
↓ 3 callersMethodrecordSpawnForHeadroom
recordSpawnForHeadroom appends this spawn's shape to the spawn log, which the leader-only reconcile reads to size the placeholder pool. Best-effort: a
controlplane/headroom.go:99
↓ 3 callersFunctionrecreatePgClassForDuckLake
recreatePgClassForDuckLake recreates pg_class_full to source from DuckDB's native system functions (duckdb_tables, duckdb_views, etc.) filtered to onl
server/catalog.go:1922
↓ 3 callersFunctionrecreatePgNamespaceForDuckLake
recreatePgNamespaceForDuckLake recreates pg_namespace to source from DuckDB's native duckdb_tables() and duckdb_views() functions to get schema OIDs t
server/catalog.go:2118
↓ 3 callersFunctionregisterClusterAPI
registerClusterAPI wires the read-only cluster-topology endpoints. It is only called when a kubernetes client is available (remote/k8s backend); the p
controlplane/admin/cluster.go:47
↓ 3 callersMethodremoveWorkerAfterLostLeaseLocked
(lease workerLeaseSnapshot)
controlplane/k8s_pool_lifecycle.go:1309
↓ 3 callersFunctionrender
()
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:510
↓ 3 callersFunctionrenderEvRow
(e: any, animate: boolean)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:305
↓ 3 callersFunctionrenderPanel
renderPanel substitutes the named tokens into a panel template. $ORGERR is listed before $ORG so the replacer matches the longer token first.
controlplane/admin/metrics_proxy.go:61
↓ 3 callersFunctionrequireGooseLatestVersion
(t *testing.T, db *sql.DB, version int64)
tests/configstore/migrations_postgres_test.go:394
↓ 3 callersFunctionrequiredString
(step core.Step, key string)
tests/scenario/perf/steps.go:335
↓ 3 callersFunctionrequiredString
(step core.Step, key string)
tests/scenario/provision/steps.go:197
↓ 3 callersMethodresolve
()
cmd/cache-proxy/peers.go:89
↓ 3 callersMethodresolveSessionLimits
(memoryLimit string, threads int)
controlplane/session_mgr.go:476
↓ 3 callersFunctionresolveWorkerAssignment
(current, proposed *WorkerAssignment)
controlplane/worker_state.go:192
↓ 3 callersMethodrollbackConn
(ctx context.Context)
duckdbservice/service.go:365
↓ 3 callersFunctionrowsAffectedOrError
(res server.ExecResult)
server/flightsqlingress/ingress.go:666
↓ 3 callersFunctionrunChildAuth
runChildAuth feeds clientBytes to authenticateChildClient and returns the exit code plus everything the server wrote to the client.
server/worker_auth_test.go:23
↓ 3 callersFunctionrunCrashChild
runCrashChild re-runs the test binary in the given crash mode and returns (stderr, waitStatus).
internal/crashhandler/crashhandler_test.go:39
↓ 3 callersFunctionrunPipeline
runPipeline feeds a pipelined client byte stream (terminated with a Terminate frame) through messageLoop and returns the parsed output frames.
server/conn_skip_until_sync_test.go:156
↓ 3 callersMethodsafeCleanupDB
safeCleanupDB safely closes the database connection, handling the case where the underlying connection (e.g., DuckLake's SSL connection to RDS) may be
server/conn.go:584
↓ 3 callersFunctionsameOwnerActivationAttempt
(current, next ActivationPayload)
duckdbservice/activation.go:285
↓ 3 callersMethodscheduleCleanup
scheduleCleanup invokes WorkerPhysicalCleanup if configured. Separated so every successful-CAS path goes through one helper, making it easy to audit "
controlplane/worker_lifecycle.go:385
↓ 3 callersMethodsendInitialParams
()
server/conn.go:1082
↓ 3 callersMethodsendPgStatActivityDataRow
sendPgStatActivityDataRow sends a DataRow for a single connection in pg_stat_activity.
server/conn_pg_stat_activity.go:139
↓ 3 callersFunctionsetDuckLakeDefault
setDuckLakeDefault sets the DuckLake catalog as the default so all queries use it. This should be called AFTER creating per-connection views in memory
server/server.go:1958
↓ 3 callersFunctionsetInvalidWorkerBinary
(pool *FlightWorkerPool)
controlplane/worker_mgr_process_test.go:16
↓ 3 callersFunctionshapeDrifted
shapeDrifted reports whether an existing placeholder's request differs from the planned one by more than headroomShapeDriftPct on this axis. The toler
controlplane/headroom.go:219
↓ 3 callersMethodsizeMainForSessions
sizeMainForSessions matches the Main DB's connection capacity to the worker's session admission. Every admitted session pins one *sql.Conn for its who
duckdbservice/service.go:540
↓ 3 callersFunctionskipCommentsAndSpace
skipCommentsAndSpace removes leading whitespace, line comments (--) and block comments (/* */, nested) from s. Returns ok=false on an unterminated blo
server/usersecrets/classify.go:175
↓ 3 callersMethodskippedResult
(runID string, step Step, errorClass, message string, err error)
tests/scenario/core/runner.go:206
↓ 3 callersMethodsnapshot
()
controlplane/runtime_tracker_test.go:31
↓ 3 callersFunctionsortPods
(l: [any, string][])
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:534
↓ 3 callersFunctionsplitHostPort
splitHostPort splits a host:port pair.
server/querylog.go:692
↓ 3 callersFunctionsplitTopLevel
splitTopLevel splits query on top-level semicolons (outside string literals, quoted identifiers, and comments), using the same scanning rules as hasTr
server/usersecrets/classify.go:261
↓ 3 callersFunctionsplitTopLevelCommas
splitTopLevelCommas splits s on commas at parenthesis depth 0, respecting double-quoted identifiers (with "" as escape).
duckdbservice/arrowmap/arrowmap.go:148
↓ 3 callersFunctionstartPoll
( path: string, store: Map<string, any>, onEvent: (type: string, o: any) => void, intervalMs:
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:196
↓ 3 callersMethodstopContextDone
()
server/querylog_kafka.go:278
↓ 3 callersMethodstopQueryLogger
()
controlplane/control.go:1807
↓ 3 callersFunctionstripLeadingSQLComments
(query string)
duckdbservice/transient.go:53
↓ 3 callersFunctiontransformErrorSQLState
transformErrorSQLState returns the SQLSTATE for a transpiler-detected error. A transform may attach an explicit code (e.g. 0A000 for an unsupported fe
server/conn_errors.go:125
↓ 3 callersMethodtransformFromItem
(node *pg_query.Node)
transpiler/transform/operators.go:330
↓ 3 callersMethodtransformReturningList
transformReturningList transforms RETURNING expressions of INSERT/UPDATE/DELETE.
transpiler/transform/operators.go:227
↓ 3 callersMethodtransformSortClause
transformSortClause transforms the sort expressions in a list of SortBy nodes (SELECT ORDER BY, aggregate ORDER BY, window ORDER BY).
transpiler/transform/operators.go:194
↓ 3 callersFunctiontrimK8sPodHashSuffix
trimK8sPodHashSuffix removes the trailing 5-character random pod-hash segment from a K8s deployment pod name (e.g. "duckgres-7b667c7bfd-7745x" → "duck
controlplane/k8s_pool_helpers.go:172
↓ 3 callersFunctionunwrapFlightError
unwrapFlightError recovers the underlying error message from an Arrow Flight / gRPC wrapper. gRPC errors stringify as "… rpc error: code = X desc = <m
server/conn_errors.go:138
↓ 3 callersMethodupsertAt
(now time.Time)
controlplane/runtime_tracker.go:100
↓ 3 callersFunctionuseOrgs
()
controlplane/admin/ui/src/hooks/useApi.ts:105
↓ 3 callersFunctionvalidateQueryLogKafkaConfig
(cfg QueryLogConfig)
server/querylog_kafka.go:119
↓ 3 callersFunctionvalidateSharedStartupConfig
(data []byte)
controlplane/shared_startup_config.go:31
↓ 3 callersMethodvalidateWithDuckDB
validateWithDuckDB checks if a query is valid DuckDB syntax. This is used when PostgreSQL parsing fails to determine if the query should be executed n
server/conn.go:701
↓ 3 callersMethodwaitBeforeRetry
(ctx context.Context)
server/querylog_kafka_writer.go:433
↓ 3 callersMethodwaitForSessionIdle
()
server/flightclient/flight_executor.go:349
↓ 3 callersFunctionwaitTimeoutError
(target, orgID string)
tests/scenario/provision/client.go:251
↓ 3 callersFunctionwithSpanRecorder
withSpanRecorder installs an in-memory span recorder as proxyTracer for the test and returns it. Restores the previous tracer on cleanup. This is how
cmd/cache-proxy/tracing_test.go:18
← previousnext →1,201–1,300 of 5,901, ranked by callers