MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

↓ 3 callersMethodError
()
tests/scenario/perf/errors.go:14
↓ 3 callersMethodFindByBackendKey
FindByBackendKey finds a child process by its backend key (for cancel requests)
server/parent.go:68
↓ 3 callersFunctionGenerateDeterministic
(seed int64, scale int)
tests/perf/datasets/generator.go:14
↓ 3 callersMethodGetCatalog
()
duckdbservice/flight_handler_test.go:99
↓ 3 callersMethodGetDBSchemaFilterPattern
()
duckdbservice/flight_handler_test.go:103
↓ 3 callersMethodGetOrCreate
(ctx context.Context, key, username string)
server/flightsqlingress/ingress.go:1580
↓ 3 callersMethodGetPreparedStatementHandle
()
duckdbservice/flight_handler_test.go:67
↓ 3 callersMethodGetProgress
GetProgress returns the cached query progress for a session, or nil.
controlplane/session_mgr.go:1004
↓ 3 callersMethodGetQuery
()
server/flightsqlingress/ingress_test.go:65
↓ 3 callersMethodHandleConfigChange
HandleConfigChange reconciles org stacks when the config snapshot changes.
controlplane/org_router.go:233
↓ 3 callersMethodHandlePeerHas
HandlePeerHas responds to "do you have this cache key?" from peers.
cmd/cache-proxy/proxy.go:775
↓ 3 callersMethodHandshake
(ctx context.Context, opts ...grpc.CallOption)
controlplane/session_mgr_drain_test.go:432
↓ 3 callersMethodHeadroomSpawnStats
(burstWindow, bucket, sizeWindow time.Duration)
controlplane/headroom.go:68
↓ 3 callersFunctionInitMetrics
InitMetrics starts the Prometheus metrics HTTP server on :9090/metrics and returns the *http.Server so callers can shut it down during graceful shutdo
internal/cliboot/metrics.go:19
↓ 3 callersMethodIsDead
IsDead reports whether this executor has been marked dead.
server/flightclient/flight_executor.go:130
↓ 3 callersMethodIsDraining
()
duckdbservice/service.go:1359
↓ 3 callersFunctionIsEmptyQuery
IsEmptyQuery checks if a query contains only semicolons, whitespace, and/or SQL comments. PostgreSQL returns EmptyQueryResponse for queries like ";",
server/sqlcore/query.go:8
↓ 3 callersMethodKillUserSessions
KillUserSessions tears down every active session for (orgID, username) owned by THIS control-plane replica and returns the count destroyed. The handle
controlplane/admin/live.go:145
↓ 3 callersMethodListWorkerLifecycleStats
()
controlplane/multitenant.go:624
↓ 3 callersFunctionLogCacheProxyStatus
LogCacheProxyStatus logs whether the cache proxy integration is enabled. Called once from main on every duckgres process (control plane and workers) s
duckdbservice/cache_proxy.go:66
↓ 3 callersMethodMutateManagedWarehouse
MutateManagedWarehouse loads the existing warehouse (or a zero value if none), calls mutate to apply changes, and persists the result — all inside a s
controlplane/admin/api.go:147
↓ 3 callersMethodNeedsTransform
()
transpiler/backend/profile.go:40
↓ 3 callersFunctionNewConfigStore
NewConfigStore connects to the PostgreSQL config store, runs migrations, ensures singleton rows exist, and loads the initial snapshot.
controlplane/configstore/store.go:102
↓ 3 callersFunctionNewControlPlaneRuntimeTracker
(store runtimeInstanceStore, id, podName string, heartbeatInterval time.Duration)
controlplane/runtime_tracker.go:32
↓ 3 callersFunctionNewDuckLakeCheckpointer
NewDuckLakeCheckpointer opens a dedicated DuckDB connection, attaches DuckLake, and starts a background goroutine that runs CHECKPOINT on the configur
server/checkpoint.go:26
↓ 3 callersFunctionNewDucklingClient
NewDucklingClient creates a DucklingClient using in-cluster config.
controlplane/provisioner/k8s_client.go:65
↓ 3 callersFunctionNewFeatureNotSupported
NewFeatureNotSupported returns a 0A000 (feature_not_supported) error. Use it for PostgreSQL features the active backend cannot honor (e.g. ON CONFLICT
transpiler/transform/errors.go:19
↓ 3 callersFunctionNewFlightIngressFromListener
(baseListener net.Listener, tlsConfig *tls.Config, validator CredentialValidator, provider SessionProvider, cf
server/flightsqlingress/ingress.go:204
↓ 3 callersFunctionNewIntentMatcher
()
tests/perf/core/intent_matcher.go:10
↓ 3 callersFunctionNewQueryRunner
(cfg RunnerConfig)
tests/perf/core/runner.go:40
↓ 3 callersFunctionNewTypeCastTransform
NewTypeCastTransform creates a new TypeCastTransform with default mappings.
transpiler/transform/typecast.go:18
↓ 3 callersFunctionNormalizeIdleTimeout
NormalizeIdleTimeout resolves a configured connection idle timeout: zero means "unset" → use zeroDefault; a negative value means "explicitly disabled"
server/exports.go:94
↓ 3 callersMethodOperatorRole
OperatorRole returns the role for an operator email, case-insensitively. Returns "" (and no error) when the email has no operator row — callers treat
controlplane/configstore/operators.go:30
↓ 3 callersMethodOutputDir
()
tests/scenario/dbt/steps.go:122
↓ 3 callersMethodOutputDir
()
tests/scenario/perf/steps.go:110
↓ 3 callersFunctionParseCatalog
(raw []byte)
tests/perf/core/catalog.go:19
↓ 3 callersFunctionParseCopyFromOptions
ParseCopyFromOptions extracts options from a COPY FROM STDIN command
server/conn_copy.go:68
↓ 3 callersFunctionParseProfilingOutput
ParseProfilingOutput extracts the full profiling tree from DuckDB's JSON output. Exposed for the integration test in package server, which captures re
server/observe/tracing.go:66
↓ 3 callersFunctionProcessVersion
ProcessVersion returns the version string for this process.
server/server.go:80
↓ 3 callersMethodProfileCPU
ProfileCPU returns the worker profile CPU recorded at observation time.
controlplane/configstore/lifecycle_types.go:56
↓ 3 callersMethodProfileMemory
ProfileMemory returns the worker profile memory recorded at observation time.
controlplane/configstore/lifecycle_types.go:59
↓ 3 callersFunctionProfilingSetupSQL
ProfilingSetupSQL returns the SQL statements that configure DuckDB profiling so the output is written to outputPath. These are session-scoped — DuckDB
server/profiling.go:21
↓ 3 callersFunctionQuoteIdent
QuoteIdent quotes a SQL identifier to prevent injection.
duckdbservice/arrowmap/arrowmap.go:298
↓ 3 callersMethodRecentErrors
RecentErrors returns up to limit of this server's most recent redacted query errors, newest first. Used by the control-plane admin Errors page (fanned
server/recent_errors.go:93
↓ 3 callersFunctionRecoverAbortedTransaction
RecoverAbortedTransaction rolls back and retries once when a DuckLake-backed connection is stuck in "Current transaction is aborted" state. This is on
server/transient.go:79
↓ 3 callersFunctionRedactSecrets
RedactSecrets replaces password=<value> (and password: <value>) patterns with password=[REDACTED] for safe logging and error reporting. It handles bot
server/wire/redact.go:13
↓ 3 callersMethodRefreshLease
RefreshLease bumps the durable owner_epoch under the current lease and returns a fresh lease at the new epoch. Equivalent to calling BumpWorkerEpoch d
controlplane/worker_lifecycle.go:355
↓ 3 callersMethodReserveSharedWorker
ReserveSharedWorker claims a hot-idle worker or spawns one on demand. Composition of the gateable decision (reserveSharedWorkerDecision) and the slow
controlplane/k8s_pool_acquire.go:315
↓ 3 callersFunctionResolveEnvTemplates
ResolveEnvTemplates replaces ${env:NAME} placeholders without exposing values in errors.
tests/scenario/core/templates.go:13
↓ 3 callersMethodResult
(stepID string)
tests/scenario/dbt/steps.go:132
↓ 3 callersMethodRetireHotIdleWorker
RetireHotIdleWorker atomically transitions the observed hot-idle row to retired. Returns false if the row no longer matches the listed snapshot.
controlplane/configstore/store.go:1251
↓ 3 callersMethodRetireOrphanFromSnapshot
RetireOrphanFromSnapshot is the orphan-specific retire: it permits any active observed state (spawning through draining) and additionally enforces tha
controlplane/worker_lifecycle.go:134
↓ 3 callersFunctionRoleGate
RoleGate enforces the viewer/admin split: - mutating verbs (POST/PUT/PATCH/DELETE) require admin; - GET is allowed for any authenticated caller EXCEPT
controlplane/admin/authz.go:161
↓ 3 callersFunctionRun
Run starts the DuckDB service, blocking until shutdown.
duckdbservice/service.go:796
↓ 3 callersMethodSQLFor
(query Query, protocol Protocol)
tests/perf/core/intent_matcher.go:14
↓ 3 callersFunctionSanitizeSearchPath
SanitizeSearchPath validates a client-supplied search_path so it can be safely embedded in `SET search_path = '<value>'`. Returns (trimmed, true) when
server/startup_options.go:90
↓ 3 callersMethodSetConnCloser
SetConnCloser registers the client's TCP connection so it can be closed when the backing worker crashes. This unblocks the message loop's read, causin
controlplane/session_mgr.go:918
↓ 3 callersFunctionSetProcessVersion
SetProcessVersion sets the version string for this process. Called from main().
server/server.go:77
↓ 3 callersFunctionSetQueryLogSink
SetQueryLogSink sets the active query-log sink on a Server.
server/exports.go:320
↓ 3 callersMethodStart
(ctx context.Context)
controlplane/janitor_leader_k8s.go:164
↓ 3 callersMethodStop
()
controlplane/janitor_leader_k8s.go:211
↓ 3 callersMethodStop
()
server/querylog_kafka_test.go:55
↓ 3 callersMethodStopContext
(context.Context)
server/querylog.go:75
↓ 3 callersMethodStopQueryLogging
StopQueryLogging drains and stops the active query-log sink, if any.
server/exports.go:330
↓ 3 callersMethodStoreResult
(result StepResult)
tests/scenario/dbt/steps.go:126
↓ 3 callersMethodTranspileAll
TranspileAll bypasses classification and runs all transforms unconditionally. This is useful for testing and benchmarking the full pipeline.
transpiler/transpiler.go:216
↓ 3 callersMethodUnwrap
()
controlplane/admin/api.go:822
↓ 3 callersFunctionValidateReadOnlyCatalog
(c Catalog)
tests/perf/core/catalog.go:78
↓ 3 callersMethodWaitAll
WaitAll returns a channel that is closed when all children have exited. Caller should call this after SignalAll to wait for graceful shutdown. NOTE:
server/parent.go:108
↓ 3 callersMethodWorkerCount
WorkerCount returns the number of workers this CP currently has assigned to the org that count against MaxWorkers (hot-idle workers are excluded — the
controlplane/org_reserved_pool.go:296
↓ 3 callersMethodWorkerIDForPID
WorkerIDForPID returns the worker ID for a session, or -1 if not found.
controlplane/session_mgr.go:941
↓ 3 callersFunctionWriteBackendKeyData
writeBackendKeyData sends the backend key data (for cancel requests)
server/wire/protocol.go:233
↓ 3 callersFunctionWriteCopyDone
writeCopyDone signals the end of COPY data
server/wire/protocol.go:397
↓ 3 callersFunctionWriteCopyInResponse
writeCopyInResponse tells client to send COPY data
server/wire/protocol.go:362
↓ 3 callersFunctionWriteParameterStatus
writeParameterStatus sends a parameter status message
server/wire/protocol.go:224
↓ 3 callersMethodWriteQueryLogKafkaEvents
(ctx context.Context, events []QueryLogKafkaEvent)
server/querylog_kafka_writer.go:714
↓ 3 callersFunctionaccount_rename
( plan: TestImpactPlan, previous_path: str, path: str, matcher, added_attr: str, chang
scripts/test_impact_plan.py:160
↓ 3 callersMethodacquireFileDB
acquireFileDB returns a shared *sql.DB for the given user, creating one if needed. The caller must call releaseFileDB when the connection is no longer
server/server.go:777
↓ 3 callersMethodactivateWorkerForOrg
(ctx context.Context, worker *ManagedWorker)
controlplane/org_reserved_pool.go:451
↓ 3 callersFunctionaddQueryHandle
(session *Session, handleID string, handle *QueryHandle)
duckdbservice/flight_handler.go:137
↓ 3 callersMethodallowsDrainContinuation
(txnKey string)
duckdbservice/service.go:175
↓ 3 callersFunctionappendOrReplaceEnv
appendOrReplaceEnv appends entry (in KEY=VALUE form) to env, removing any existing entry with the same key. This prevents duplicate environment variab
controlplane/worker_mgr.go:1393
↓ 3 callersFunctionapplyConfigStoreSeed
(t *testing.T, store *cpconfigstore.ConfigStore, path string)
tests/configstore/helpers_test.go:86
↓ 3 callersFunctionapplyHTTPFSRetryBudget
applyHTTPFSRetryBudget widens httpfs's retry budget for transient S3 throttling. S3 answers a sustained request burst with HTTP 503 SlowDown ("please
server/server.go:1055
↓ 3 callersFunctionargValue
(args []string, key string)
tests/scenario/dbt/runner_test.go:242
↓ 3 callersFunctionassertSessionMutexUnlocked
(t *testing.T, session *Session)
duckdbservice/service_test.go:807
↓ 3 callersMethodassignedWorkerCountLocked
()
controlplane/org_reserved_pool.go:416
↓ 3 callersFunctionbackupMetadata
backupMetadata dumps all ducklake_* tables from the PostgreSQL metadata store to a SQL file. The file contains CREATE TABLE + INSERT statements that c
server/ducklake/migration.go:319
↓ 3 callersMethodbeginWork
()
duckdbservice/service.go:182
↓ 3 callersFunctionboolFromWith
(step core.Step, key string, fallback bool)
tests/scenario/perf/steps.go:351
↓ 3 callersFunctionboolPtr
(b bool)
configresolve/resolve.go:133
↓ 3 callersFunctionbooleanLiteralValue
(node *pg_query.Node)
transpiler/transform/boolpredicates.go:315
↓ 3 callersFunctionbuildAWSSdkSecret
buildAWSSdkSecret fetches credentials via the Go AWS SDK and builds a CREATE SECRET statement with PROVIDER config using the explicit temporary creden
server/server.go:2214
↓ 3 callersMethodbuildDuckLakeConfigFromConfigStore
buildDuckLakeConfigFromConfigStore reads infrastructure details from the config store and K8s Secrets. Used for non-Crossplane warehouses (manual seed
controlplane/shared_worker_activator.go:497
↓ 3 callersFunctionbuildInfo
()
version.go:16
↓ 3 callersFunctionbuildInfo
()
cmd/duckgres-worker/main.go:37
↓ 3 callersFunctionbuildInfo
()
cmd/duckgres-controlplane/main.go:42
↓ 3 callersFunctionbuildRawStartup
buildRawStartup writes an arbitrary (possibly invalid) length header followed by payload bytes.
server/wire/protocol_test.go:31
↓ 3 callersMethodbuildTableRef
buildTableRef builds a table reference string, rewriting CTE names to temp tables
transpiler/transform/writablecte.go:616
↓ 3 callersFunctioncacheEnabled
cacheEnabled returns true when the cache proxy integration should be used.
duckdbservice/cache_proxy.go:35
← previousnext →1,001–1,100 of 5,901, ranked by callers