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
↓ 3 callers
Method
Error
()
tests/scenario/perf/errors.go:14
↓ 3 callers
Method
FindByBackendKey
FindByBackendKey finds a child process by its backend key (for cancel requests)
server/parent.go:68
↓ 3 callers
Function
GenerateDeterministic
(seed int64, scale int)
tests/perf/datasets/generator.go:14
↓ 3 callers
Method
GetCatalog
()
duckdbservice/flight_handler_test.go:99
↓ 3 callers
Method
GetDBSchemaFilterPattern
()
duckdbservice/flight_handler_test.go:103
↓ 3 callers
Method
GetOrCreate
(ctx context.Context, key, username string)
server/flightsqlingress/ingress.go:1580
↓ 3 callers
Method
GetPreparedStatementHandle
()
duckdbservice/flight_handler_test.go:67
↓ 3 callers
Method
GetProgress
GetProgress returns the cached query progress for a session, or nil.
controlplane/session_mgr.go:1004
↓ 3 callers
Method
GetQuery
()
server/flightsqlingress/ingress_test.go:65
↓ 3 callers
Method
HandleConfigChange
HandleConfigChange reconciles org stacks when the config snapshot changes.
controlplane/org_router.go:233
↓ 3 callers
Method
HandlePeerHas
HandlePeerHas responds to "do you have this cache key?" from peers.
cmd/cache-proxy/proxy.go:775
↓ 3 callers
Method
Handshake
(ctx context.Context, opts ...grpc.CallOption)
controlplane/session_mgr_drain_test.go:432
↓ 3 callers
Method
HeadroomSpawnStats
(burstWindow, bucket, sizeWindow time.Duration)
controlplane/headroom.go:68
↓ 3 callers
Function
InitMetrics
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 callers
Method
IsDead
IsDead reports whether this executor has been marked dead.
server/flightclient/flight_executor.go:130
↓ 3 callers
Method
IsDraining
()
duckdbservice/service.go:1359
↓ 3 callers
Function
IsEmptyQuery
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 callers
Method
KillUserSessions
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 callers
Method
ListWorkerLifecycleStats
()
controlplane/multitenant.go:624
↓ 3 callers
Function
LogCacheProxyStatus
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 callers
Method
MutateManagedWarehouse
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 callers
Method
NeedsTransform
()
transpiler/backend/profile.go:40
↓ 3 callers
Function
NewConfigStore
NewConfigStore connects to the PostgreSQL config store, runs migrations, ensures singleton rows exist, and loads the initial snapshot.
controlplane/configstore/store.go:102
↓ 3 callers
Function
NewControlPlaneRuntimeTracker
(store runtimeInstanceStore, id, podName string, heartbeatInterval time.Duration)
controlplane/runtime_tracker.go:32
↓ 3 callers
Function
NewDuckLakeCheckpointer
NewDuckLakeCheckpointer opens a dedicated DuckDB connection, attaches DuckLake, and starts a background goroutine that runs CHECKPOINT on the configur
server/checkpoint.go:26
↓ 3 callers
Function
NewDucklingClient
NewDucklingClient creates a DucklingClient using in-cluster config.
controlplane/provisioner/k8s_client.go:65
↓ 3 callers
Function
NewFeatureNotSupported
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 callers
Function
NewFlightIngressFromListener
(baseListener net.Listener, tlsConfig *tls.Config, validator CredentialValidator, provider SessionProvider, cf
server/flightsqlingress/ingress.go:204
↓ 3 callers
Function
NewIntentMatcher
()
tests/perf/core/intent_matcher.go:10
↓ 3 callers
Function
NewQueryRunner
(cfg RunnerConfig)
tests/perf/core/runner.go:40
↓ 3 callers
Function
NewTypeCastTransform
NewTypeCastTransform creates a new TypeCastTransform with default mappings.
transpiler/transform/typecast.go:18
↓ 3 callers
Function
NormalizeIdleTimeout
NormalizeIdleTimeout resolves a configured connection idle timeout: zero means "unset" → use zeroDefault; a negative value means "explicitly disabled"
server/exports.go:94
↓ 3 callers
Method
OperatorRole
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 callers
Method
OutputDir
()
tests/scenario/dbt/steps.go:122
↓ 3 callers
Method
OutputDir
()
tests/scenario/perf/steps.go:110
↓ 3 callers
Function
ParseCatalog
(raw []byte)
tests/perf/core/catalog.go:19
↓ 3 callers
Function
ParseCopyFromOptions
ParseCopyFromOptions extracts options from a COPY FROM STDIN command
server/conn_copy.go:68
↓ 3 callers
Function
ParseProfilingOutput
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 callers
Function
ProcessVersion
ProcessVersion returns the version string for this process.
server/server.go:80
↓ 3 callers
Method
ProfileCPU
ProfileCPU returns the worker profile CPU recorded at observation time.
controlplane/configstore/lifecycle_types.go:56
↓ 3 callers
Method
ProfileMemory
ProfileMemory returns the worker profile memory recorded at observation time.
controlplane/configstore/lifecycle_types.go:59
↓ 3 callers
Function
ProfilingSetupSQL
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 callers
Function
QuoteIdent
QuoteIdent quotes a SQL identifier to prevent injection.
duckdbservice/arrowmap/arrowmap.go:298
↓ 3 callers
Method
RecentErrors
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 callers
Function
RecoverAbortedTransaction
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 callers
Function
RedactSecrets
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 callers
Method
RefreshLease
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 callers
Method
ReserveSharedWorker
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 callers
Function
ResolveEnvTemplates
ResolveEnvTemplates replaces ${env:NAME} placeholders without exposing values in errors.
tests/scenario/core/templates.go:13
↓ 3 callers
Method
Result
(stepID string)
tests/scenario/dbt/steps.go:132
↓ 3 callers
Method
RetireHotIdleWorker
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 callers
Method
RetireOrphanFromSnapshot
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 callers
Function
RoleGate
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 callers
Function
Run
Run starts the DuckDB service, blocking until shutdown.
duckdbservice/service.go:796
↓ 3 callers
Method
SQLFor
(query Query, protocol Protocol)
tests/perf/core/intent_matcher.go:14
↓ 3 callers
Function
SanitizeSearchPath
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 callers
Method
SetConnCloser
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 callers
Function
SetProcessVersion
SetProcessVersion sets the version string for this process. Called from main().
server/server.go:77
↓ 3 callers
Function
SetQueryLogSink
SetQueryLogSink sets the active query-log sink on a Server.
server/exports.go:320
↓ 3 callers
Method
Start
(ctx context.Context)
controlplane/janitor_leader_k8s.go:164
↓ 3 callers
Method
Stop
()
controlplane/janitor_leader_k8s.go:211
↓ 3 callers
Method
Stop
()
server/querylog_kafka_test.go:55
↓ 3 callers
Method
StopContext
(context.Context)
server/querylog.go:75
↓ 3 callers
Method
StopQueryLogging
StopQueryLogging drains and stops the active query-log sink, if any.
server/exports.go:330
↓ 3 callers
Method
StoreResult
(result StepResult)
tests/scenario/dbt/steps.go:126
↓ 3 callers
Method
TranspileAll
TranspileAll bypasses classification and runs all transforms unconditionally. This is useful for testing and benchmarking the full pipeline.
transpiler/transpiler.go:216
↓ 3 callers
Method
Unwrap
()
controlplane/admin/api.go:822
↓ 3 callers
Function
ValidateReadOnlyCatalog
(c Catalog)
tests/perf/core/catalog.go:78
↓ 3 callers
Method
WaitAll
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 callers
Method
WorkerCount
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 callers
Method
WorkerIDForPID
WorkerIDForPID returns the worker ID for a session, or -1 if not found.
controlplane/session_mgr.go:941
↓ 3 callers
Function
WriteBackendKeyData
writeBackendKeyData sends the backend key data (for cancel requests)
server/wire/protocol.go:233
↓ 3 callers
Function
WriteCopyDone
writeCopyDone signals the end of COPY data
server/wire/protocol.go:397
↓ 3 callers
Function
WriteCopyInResponse
writeCopyInResponse tells client to send COPY data
server/wire/protocol.go:362
↓ 3 callers
Function
WriteParameterStatus
writeParameterStatus sends a parameter status message
server/wire/protocol.go:224
↓ 3 callers
Method
WriteQueryLogKafkaEvents
(ctx context.Context, events []QueryLogKafkaEvent)
server/querylog_kafka_writer.go:714
↓ 3 callers
Function
account_rename
( plan: TestImpactPlan, previous_path: str, path: str, matcher, added_attr: str, chang
scripts/test_impact_plan.py:160
↓ 3 callers
Method
acquireFileDB
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 callers
Method
activateWorkerForOrg
(ctx context.Context, worker *ManagedWorker)
controlplane/org_reserved_pool.go:451
↓ 3 callers
Function
addQueryHandle
(session *Session, handleID string, handle *QueryHandle)
duckdbservice/flight_handler.go:137
↓ 3 callers
Method
allowsDrainContinuation
(txnKey string)
duckdbservice/service.go:175
↓ 3 callers
Function
appendOrReplaceEnv
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 callers
Function
applyConfigStoreSeed
(t *testing.T, store *cpconfigstore.ConfigStore, path string)
tests/configstore/helpers_test.go:86
↓ 3 callers
Function
applyHTTPFSRetryBudget
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 callers
Function
argValue
(args []string, key string)
tests/scenario/dbt/runner_test.go:242
↓ 3 callers
Function
assertSessionMutexUnlocked
(t *testing.T, session *Session)
duckdbservice/service_test.go:807
↓ 3 callers
Method
assignedWorkerCountLocked
()
controlplane/org_reserved_pool.go:416
↓ 3 callers
Function
backupMetadata
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 callers
Method
beginWork
()
duckdbservice/service.go:182
↓ 3 callers
Function
boolFromWith
(step core.Step, key string, fallback bool)
tests/scenario/perf/steps.go:351
↓ 3 callers
Function
boolPtr
(b bool)
configresolve/resolve.go:133
↓ 3 callers
Function
booleanLiteralValue
(node *pg_query.Node)
transpiler/transform/boolpredicates.go:315
↓ 3 callers
Function
buildAWSSdkSecret
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 callers
Method
buildDuckLakeConfigFromConfigStore
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 callers
Function
buildInfo
()
version.go:16
↓ 3 callers
Function
buildInfo
()
cmd/duckgres-worker/main.go:37
↓ 3 callers
Function
buildInfo
()
cmd/duckgres-controlplane/main.go:42
↓ 3 callers
Function
buildRawStartup
buildRawStartup writes an arbitrary (possibly invalid) length header followed by payload bytes.
server/wire/protocol_test.go:31
↓ 3 callers
Method
buildTableRef
buildTableRef builds a table reference string, rewriting CTE names to temp tables
transpiler/transform/writablecte.go:616
↓ 3 callers
Function
cacheEnabled
cacheEnabled returns true when the cache proxy integration should be used.
duckdbservice/cache_proxy.go:35
← previous
next →
1,001–1,100 of 5,901, ranked by callers