MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

↓ 1 callersFunctionCatalogFromSearchPath
CatalogFromSearchPath returns the catalog from the first search_path entry, or "" when the first entry is an unqualified schema.
server/sqlcore/identifier.go:49
↓ 1 callersFunctionCheckAndBackupMigration
CheckAndBackupMigration runs the migration check for the given DuckLake config and returns whether migration is needed. If migration is needed, it bac
server/ducklake/migration.go:128
↓ 1 callersFunctionCheckMigrationVersion
CheckMigrationVersion checks only whether a DuckLake metadata store needs migration, without performing the backup. This is fast (<1s) and safe to cal
server/ducklake/migration.go:142
↓ 1 callersMethodClearMigrating
ClearMigrating marks an org's DuckLake migration as complete.
controlplane/org_router.go:221
↓ 1 callersMethodClose
()
internal/analytics/analytics.go:92
↓ 1 callersMethodClose
()
server/querylog_kafka_writer.go:967
↓ 1 callersMethodClose
()
server/flightclient/flight_executor.go:327
↓ 1 callersMethodClosePreparedStatement
(ctx context.Context, req flightsql.ActionClosePreparedStatementRequest)
server/flightsqlingress/ingress.go:783
↓ 1 callersMethodCloseSessionIfReconnectTargetUnchanged
(stale DurableSessionRecord, closedAt time.Time)
server/flightsqlingress/ingress.go:117
↓ 1 callersFunctionCompareQueries
CompareQueries executes a query on both databases and compares results
tests/integration/compare.go:175
↓ 1 callersMethodComputeBillingCursor
()
controlplane/compute_billing_api.go:15
↓ 1 callersFunctionConfigForBackend
(name backendpkg.Name)
transpiler/config.go:60
↓ 1 callersMethodConfigureBatching
(batchSize int, flushInterval time.Duration)
server/querylog_kafka_writer.go:145
↓ 1 callersMethodConnContext
(ctx context.Context)
server/sqlcore/interfaces.go:52
↓ 1 callersMethodConnDetailByWorkerID
ConnDetailByWorkerID returns a redacted snapshot of the live connection bound to the given control-plane worker id, or ok=false if none is registered
server/exports.go:150
↓ 1 callersMethodConnect
(ctx context.Context)
duckdbservice/duckdb_pair.go:77
↓ 1 callersFunctionConnectionBilling
ConnectionBilling returns the data needed to meter one connection's compute-usage at teardown: the org, the session's query source (the `duckgres.quer
server/exports.go:216
↓ 1 callersMethodControlPlaneInstances
ControlPlaneInstances returns the live CP replicas.
controlplane/admin/live.go:131
↓ 1 callersMethodCountHotIdleWorkers
(orgID, image, profileCPU, profileMemory string)
controlplane/janitor.go:23
↓ 1 callersMethodCountHotIdleWorkers
(orgID, image, profileCPU, profileMemory string)
controlplane/per_cp_hot_idle_reaper.go:14
↓ 1 callersFunctionCountParameters
CountParameters parses SQL and counts $N placeholders without applying any transforms. This is used for prepared statements in native DuckDB mode wher
transpiler/transpiler.go:803
↓ 1 callersFunctionCreateK8sPool
CreateK8sPool creates a Kubernetes worker pool if the kubernetes build tag is enabled.
controlplane/worker_pool.go:151
↓ 1 callersMethodCreateOrg
(org *configstore.Org)
controlplane/admin/api.go:128
↓ 1 callersMethodCreateOrgUser
(orgID, username, passwordHash string)
controlplane/provisioning/api.go:81
↓ 1 callersMethodCreatePreparedStatement
(ctx context.Context, req flightsql.ActionCreatePreparedStatementRequest)
server/flightsqlingress/ingress.go:731
↓ 1 callersMethodCreateUser
(user *configstore.OrgUser)
controlplane/admin/api.go:134
↓ 1 callersFunctionDefaultServerConfig
()
configresolve/resolve.go:135
↓ 1 callersMethodDeleteOperator
DeleteOperator removes an operator by email (case-insensitive), reporting whether a row was deleted. Deleting a missing operator is not an error.
controlplane/configstore/operators.go:86
↓ 1 callersMethodDeleteOrg
(name string)
controlplane/admin/api.go:131
↓ 1 callersMethodDeleteUser
(orgID, username string)
controlplane/admin/api.go:137
↓ 1 callersMethodDeleteWorkerArtifacts
DeleteWorkerArtifacts schedules deletion of the pod and RPC secret for the named worker. Called only after the durable runtime row has transitioned to
controlplane/worker_lifecycle.go:27
↓ 1 callersMethodDoGetDBSchemas
(ctx context.Context, cmd flightsql.GetDBSchemas)
server/flightsqlingress/ingress.go:891
↓ 1 callersMethodDoGetPreparedStatement
(ctx context.Context, cmd flightsql.PreparedStatementQuery)
server/flightsqlingress/ingress.go:822
↓ 1 callersMethodDoGetTables
(ctx context.Context, cmd flightsql.GetTables)
server/flightsqlingress/ingress.go:968
↓ 1 callersMethodDoPutCommandStatementUpdate
(ctx context.Context, cmd flightsql.StatementUpdate)
server/flightsqlingress/ingress.go:636
↓ 1 callersMethodDurableSessionMetadata
(pid int32, username string)
server/flightsqlingress/ingress.go:121
↓ 1 callersMethodDurableSessionStore
()
server/flightsqlingress/ingress.go:129
↓ 1 callersMethodEnabled
()
tests/perf/publisher/publisher.go:88
↓ 1 callersMethodEnqueue
(posthog.Message)
internal/analytics/analytics.go:55
↓ 1 callersMethodError
()
cmd/cache-proxy/proxy_test.go:22
↓ 1 callersMethodError
()
tests/scenario/dbt/errors.go:14
↓ 1 callersMethodExec
(query string, args ...any)
server/attach_timeout.go:198
↓ 1 callersMethodExecContext
(ctx context.Context, query string, args ...any)
server/flightclient/flight_executor.go:251
↓ 1 callersMethodFlushComputeUsage
([]configstore.ComputeUsageDelta)
controlplane/compute_meter.go:149
↓ 1 callersFunctionFuncAliasNames
FuncAliasNames returns all function names that need alias normalization.
transpiler/transform/funcalias.go:32
↓ 1 callersFunctionFunctionNames
FunctionNames returns all PostgreSQL function names that have DuckDB mappings.
transpiler/transform/functions.go:141
↓ 1 callersMethodGCComputeUsage
(olderThan time.Time)
controlplane/compute_gc.go:27
↓ 1 callersMethodGatherer
()
tests/perf/core/metrics.go:96
↓ 1 callersMethodGetDataStoreBucketName
GetDataStoreBucketName reads spec.dataStore.bucketName from the named Duckling CR. Empty (missing block / missing key) means the CR predates CP-owned
controlplane/provisioner/k8s_client.go:379
↓ 1 callersMethodGetFlightInfoPreparedStatement
(ctx context.Context, cmd flightsql.PreparedStatementQuery, desc *flight.FlightDescriptor)
server/flightsqlingress/ingress.go:794
↓ 1 callersMethodGetFlightInfoTables
(ctx context.Context, cmd flightsql.GetTables, desc *flight.FlightDescriptor)
server/flightsqlingress/ingress.go:945
↓ 1 callersMethodGetManagedWarehouse
(orgID string)
controlplane/admin/api.go:322
↓ 1 callersMethodGetOrg
(orgID string)
controlplane/provisioning/api.go:73
↓ 1 callersMethodGetOrg
(name string)
controlplane/admin/api.go:175
↓ 1 callersMethodGetSchema
(ctx context.Context, in *flight.FlightDescriptor, opts ...grpc.CallOption)
controlplane/session_mgr_drain_test.go:448
↓ 1 callersMethodGetTableTypes
()
duckdbservice/flight_handler_test.go:111
↓ 1 callersMethodGetUser
(orgID, username string)
controlplane/admin/api.go:135
↓ 1 callersMethodGetWorkerRecord
(workerID int)
controlplane/k8s_pool_test.go:264
↓ 1 callersMethodGetWorkerRecord
GetWorkerRecord returns a runtime worker row by worker id. Returns (nil, nil) when no row matches — "not found" is a normal state for callers like cle
controlplane/configstore/store.go:1049
↓ 1 callersMethodHandle
(_ context.Context, r slog.Record)
controlplane/k8s_pool_test.go:69
↓ 1 callersMethodHealthy
()
server/flightsqlingress/ingress.go:276
↓ 1 callersMethodImage
Image returns the container image recorded for this worker.
controlplane/configstore/lifecycle_types.go:53
↓ 1 callersMethodImpersonate
(c *gin.Context, org, username, sql string, allowWrite bool)
controlplane/admin/impersonate.go:26
↓ 1 callersMethodInvalidateQueryLogEntryWriter
(string, QueryLogEntryWriter)
server/querylog_kafka_writer.go:90
↓ 1 callersMethodIsDatabaseNameAvailable
(name string)
controlplane/provisioning/api.go:84
↓ 1 callersMethodIsMigratingForOrg
(orgID string)
controlplane/control.go:256
↓ 1 callersFunctionIsPostgresRunning
IsPostgresRunning checks if the PostgreSQL container is running
tests/integration/harness.go:701
↓ 1 callersFunctionIsTransientStartupError
(err error)
tests/scenario/sql/steps.go:359
↓ 1 callersMethodKillSession
KillSession tears down the session (and its exclusive worker) for pid. Returns an error if no such session exists. NOTE: pid is per-CP, not cluster-un
controlplane/admin/live.go:135
↓ 1 callersMethodKillSessionByWorkerID
KillSessionByWorkerID tears down the session bound to the cluster-unique worker id on THIS replica (0 or 1). The handler fans it out so a cancel hits
controlplane/admin/live.go:140
↓ 1 callersMethodLastProfilingOutput
LastProfilingOutput returns the JSON profiling output from the last executed query, or "" if profiling is not enabled or not available (e.g. Flight SQ
server/sqlcore/interfaces.go:59
↓ 1 callersMethodListCRNames
(ctx context.Context)
controlplane/admin/ducklings_drift.go:22
↓ 1 callersMethodListExpiredHotIdleSnapshots
(now time.Time, defaultTTL time.Duration)
controlplane/janitor.go:22
↓ 1 callersMethodListExpiredHotIdleSnapshotsForCP
(ownerCPInstanceID string, now time.Time, defaultTTL time.Duration)
controlplane/per_cp_hot_idle_reaper.go:13
↓ 1 callersMethodListOperators
ListOperators returns all operators ordered by email.
controlplane/configstore/operators.go:47
↓ 1 callersMethodListOrgs
()
controlplane/admin/api.go:127
↓ 1 callersMethodListOrphanedWorkerSnapshots
(before time.Time)
controlplane/janitor.go:20
↓ 1 callersMethodListOrphanedWorkerSnapshots
ListOrphanedWorkerSnapshots returns workers whose owning CP instance is no longer live (expired/missing past the cutoff). Reused here so the per-CP re
controlplane/per_cp_hot_idle_reaper.go:19
↓ 1 callersMethodListStuckWorkerSnapshots
(spawningBefore, activatingBefore time.Time)
controlplane/janitor.go:21
↓ 1 callersMethodListUsers
()
controlplane/admin/api.go:133
↓ 1 callersMethodListWarehouses
ListWarehousesByStates returns all warehouses with a state matching one of the given values. This is a direct DB query, not snapshot-based, for use by
controlplane/configstore/store.go:645
↓ 1 callersMethodListWarehousesByStates
(states []configstore.ManagedWarehouseProvisioningState)
controlplane/provisioner/controller.go:54
↓ 1 callersMethodListWorkerRecordsByStatesBefore
ListWorkerRecordsByStatesBefore returns worker rows in any of the given states whose updated_at is at or before the given cutoff. The age filter is wh
controlplane/configstore/store.go:1029
↓ 1 callersFunctionLoadCatalog
(path string)
tests/perf/core/catalog.go:11
↓ 1 callersMethodLoadStatements
LoadStatements returns the user's decrypted secret statements for replay at session creation. Rows that fail to decrypt (e.g. written under a rotated
controlplane/user_secrets.go:82
↓ 1 callersMethodLog
Log sends an entry to the query log. Non-blocking; drops if channel is full.
server/querylog.go:213
↓ 1 callersMethodMarkWorkerTerminalIfCurrent
(record *configstore.WorkerRecord, targetState configstore.WorkerState, reason string)
controlplane/worker_lifecycle.go:35
↓ 1 callersMethodMetadata
()
transpiler/backend/profile.go:81
↓ 1 callersMethodMetricsGatherer
()
tests/perf/core/runner.go:107
↓ 1 callersFunctionMigrationCheckError
MigrationCheckError returns the cached error from the most recent migration check for connStr, or nil if the check has not run or succeeded. Use this
server/ducklake/migration.go:106
↓ 1 callersFunctionMigrationCheckedVersion
MigrationCheckedVersion returns the version found in the metadata store. Returns "" if the check has not run or the metadata store had no version.
server/ducklake/migration.go:116
↓ 1 callersMethodNetwork
()
server/auth/ratelimit_test.go:15
↓ 1 callersFunctionNewAuditStore
NewAuditStore returns an AuditStore over the config-store DB and ensures the table exists (AutoMigrate, matching the runtime-table bootstrap pattern —
controlplane/admin/audit.go:50
↓ 1 callersFunctionNewCPUserSecretManager
NewCPUserSecretManager builds the manager. encodedKey is the value of DUCKGRES_USER_SECRET_KEY; empty disables persistence (not an error), a malformed
controlplane/user_secrets.go:33
↓ 1 callersFunctionNewController
NewController creates a provisioning controller. Returns an error if the Kubernetes client cannot be initialized (e.g., not running in-cluster).
controlplane/provisioner/controller.go:80
↓ 1 callersFunctionNewCtidTransform
()
transpiler/transform/ctid.go:14
↓ 1 callersFunctionNewDatabaseDriver
()
tests/scenario/sql/driver.go:32
↓ 1 callersFunctionNewDuckDBService
NewDuckDBService creates a new DuckDB service with the given config.
duckdbservice/service.go:468
↓ 1 callersFunctionNewDucklingClientWithDynamic
NewDucklingClientWithDynamic creates a DucklingClient with a provided dynamic.Interface (for testing).
controlplane/provisioner/k8s_client.go:78
↓ 1 callersFunctionNewExpandArrayTransform
()
transpiler/transform/expandarray.go:24
← previousnext →1,901–2,000 of 5,901, ranked by callers