MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

↓ 1 callersMethoddeleteUser
(c *gin.Context)
controlplane/admin/api.go:1145
↓ 1 callersMethoddeparseExpression
deparseExpression deparses an expression node by wrapping it in a SELECT statement and then extracting just the expression part.
transpiler/transform/writablecte.go:679
↓ 1 callersMethoddeparseFinalStatement
deparseFinalStatement deparses the final statement without the WITH clause, rewriting CTE references to temp table names
transpiler/transform/writablecte.go:885
↓ 1 callersMethoddeprovisionWarehouse
(c *gin.Context)
controlplane/provisioning/api.go:374
↓ 1 callersFunctiondescribePortalFrame
(portalName string)
server/conn_skip_until_sync_test.go:103
↓ 1 callersMethoddoDestroySession
(body []byte, stream flight.FlightService_DoActionServer)
duckdbservice/flight_handler.go:293
↓ 1 callersMethoddoOne
(ctx context.Context, method, ip, path string)
controlplane/live_aggregator.go:161
↓ 1 callersMethoddoRebalance
doRebalance performs the actual rebalance: computes limits, sends SET commands. The mutex is held only for snapshotting sessions (not during network I
controlplane/memory_rebalancer.go:145
↓ 1 callersFunctiondollarQuoteTag
dollarQuoteTag reports whether sql[start] == '$' begins a dollar-quote opening delimiter ($$ or $tag$) and, if so, returns the tag (possibly empty). A
transpiler/longident.go:309
↓ 1 callersMethoddone
(&self)
scripts/client-compat/clients/tokio-postgres/src/main.rs:74
↓ 1 callersMethoddone
()
scripts/client-compat/clients/pgx/main.go:68
↓ 1 callersMethoddone
()
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:405
↓ 1 callersMethoddone
()
scripts/client-compat/clients/jdbc/src/main/java/com/duckgres/compat/JdbcCompatTest.java:65
↓ 1 callersMethoddrainAfterUpgrade
drainAfterUpgrade is called after a successful tableflip upgrade. It stops accepting new connections, waits for in-flight connections to finish, shuts
controlplane/control.go:1944
↓ 1 callersMethoddrainAndShutdown
(timeout time.Duration)
controlplane/control.go:1670
↓ 1 callersFunctiondrainToEOF
drainToEOF reads from the stream until io.EOF or another non-nil error. Per the gRPC contract, the trailer is only reachable after Recv returns a non-
server/flightclient/exec_update_trailer.go:85
↓ 1 callersFunctiondrainingEligibleState
(state configstore.WorkerState)
controlplane/k8s_pool_test.go:471
↓ 1 callersMethoddriversForCatalog
(catalog perfcore.Catalog, spec stepSpec)
tests/scenario/perf/steps.go:252
↓ 1 callersMethoddropRemainingIfStopExpired
(batchLen int)
server/querylog_kafka.go:283
↓ 1 callersFunctiondropsUserArgFromPrivilegeCheck
(funcName string, argCount int)
transpiler/transform/pgcatalog.go:679
↓ 1 callersFunctionduckLakeDisableMetadataThreadLocalCacheEnabled
(dlCfg DuckLakeConfig)
server/server.go:1423
↓ 1 callersFunctionducklingBroken
(state: string | undefined)
controlplane/admin/ui/src/lib/format.ts:163
↓ 1 callersMethodduePartitions
(now time.Time, flushInterval time.Duration)
server/querylog_kafka_writer.go:587
↓ 1 callersFunctiondurationFromWith
(step core.Step, key string)
tests/scenario/sql/steps.go:417
↓ 1 callersMethodeatIdentifier
eatIdentifier consumes a bare or double-quoted identifier.
server/usersecrets/classify.go:359
↓ 1 callersMethodeffectiveBatchSize
()
server/querylog_kafka_writer.go:466
↓ 1 callersMethodeffectiveSocketDir
effectiveSocketDir returns a writable directory for dynamic worker sockets. It tries the primary socketDir first, falling back to /tmp/duckgres if the
controlplane/worker_mgr.go:324
↓ 1 callersFunctionemailFromOIDC
emailFromOIDC extracts the caller's email from the ALB OIDC data JWT (falling back to the `sub` claim, then to the identity-only header). It returns "
controlplane/admin/authz.go:114
↓ 1 callersFunctionencodeArray
encodeArray encodes a []any slice in PostgreSQL binary ARRAY format. PostgreSQL binary array format: int32 ndim - number of dimensions (1 for
server/types.go:813
↓ 1 callersMethodendTransaction
(ctx context.Context, txnKey string, action flightsql.EndTransactionRequestType)
server/flightsqlingress/ingress.go:1345
↓ 1 callersFunctionensureDuckLakeInfra
(t *testing.T)
tests/controlplane/ducklake_bool_merge_test.go:19
↓ 1 callersFunctionensureDuckLakeMetadataIndexes
ensureDuckLakeMetadataIndexes connects directly to the DuckLake PostgreSQL metadata store and creates indexes that dramatically improve query planning
server/server.go:1878
↓ 1 callersFunctionensureIntegrationPostgres
(t *testing.T)
tests/configstore/helpers_test.go:71
↓ 1 callersFunctionensureMemoryMainInSearchPath
(searchPath string)
controlplane/session_search_path.go:68
↓ 1 callersFunctionensureRuntimeSchema
(db *gorm.DB, runtimeSchema string)
controlplane/configstore/store.go:710
↓ 1 callersFunctionensureWorkerIDSequence
ensureWorkerIDSequence creates the global worker-id sequence that CreateSpawningWorkerSlot allocates from. It replaces the old SELECT MAX(worker_id)+1
controlplane/configstore/store.go:784
↓ 1 callersFunctionenvBlock
(t *testing.T, content, name string)
tests/manifests/manifests_test.go:272
↓ 1 callersFunctionenvBoolOrDefault
(key string, fallback bool)
tests/perf/harness_test.go:212
↓ 1 callersFunctionenvOrDefault
(key, fallback string)
tests/scenario/runner_test.go:481
↓ 1 callersFunctionenvString
(env map[string]any, key string)
tests/integration/composefile/compose_test.go:82
↓ 1 callersFunctionequalStringSlices
(left, right []string)
tests/perf/publisher/publisher.go:349
↓ 1 callersFunctionerrMultiTenantRequiresKubernetes
errMultiTenantRequiresKubernetes is returned via a helper (not an inline literal) so the always-error stub does not make callers' `if err != nil` stat
controlplane/multitenant_stub.go:26
↓ 1 callersMethoderrorString
(retryAfter time.Duration)
controlplane/capacity_policy.go:40
↓ 1 callersFunctionerrorsAs
(err error, target any)
tests/scenario/provision/client.go:266
↓ 1 callersFunctionerrorsIs
(err, target error)
tests/scenario/provision/steps.go:296
↓ 1 callersFunctionescapeSQLStringLiteral
(s string)
server/querylog.go:534
↓ 1 callersMethodevictLeastRecentlyUsedWritersLocked
()
server/querylog_kafka_writer.go:946
↓ 1 callersMethodexecuteAcquire
executeAcquire completes the reservation (pod spawn or hot-idle adoption) and activates the worker for the org. On success the returned worker is Hot
controlplane/org_reserved_pool.go:244
↓ 1 callersMethodexecuteDeprovision
(ctx context.Context, step core.Step)
tests/scenario/provision/steps.go:133
↓ 1 callersMethodexecuteMultiStatement
executeMultiStatement handles execution of multi-statement query rewrites. This is used for writable CTE transformations where a single PostgreSQL que
server/conn_query_exec.go:773
↓ 1 callersMethodexecuteMultiStatementExtended
executeMultiStatementExtended handles execution of multi-statement query rewrites for the extended query protocol (Parse/Bind/Execute). Unlike execute
server/conn_query_exec.go:907
↓ 1 callersMethodexecuteProvision
(ctx context.Context, step core.Step)
tests/scenario/provision/steps.go:99
↓ 1 callersFunctionexecuteShellQuery
executeShellQuery runs a single SQL statement and prints results to stdout.
server/shell.go:136
↓ 1 callersMethodexecuteWaitReady
(ctx context.Context, step core.Step)
tests/scenario/provision/steps.go:116
↓ 1 callersMethodexistingOrgConnectionLease
(tx *gorm.DB, leaseTable, requestID string)
controlplane/configstore/org_connections.go:222
↓ 1 callersFunctionexpectedErrorMismatch
(expected *ExpectedError, actualClass, actualMessage string)
tests/scenario/core/runner.go:194
↓ 1 callersFunctionexplainExecutes
explainExecutes reports whether an EXPLAIN statement actually runs its inner query (EXPLAIN ANALYZE, or EXPLAIN (ANALYZE[, ...])) — and can therefore
controlplane/admin/impersonate.go:147
↓ 1 callersFunctionextractErrorResponseField
extractErrorResponseField scans wire-protocol frames for an ErrorResponse ('E') message and returns the requested field value (e.g., 'C' for SQLSTATE,
server/conn_test.go:1668
↓ 1 callersMethodfailWaitersLocked
(err error)
controlplane/session_mgr.go:307
↓ 1 callersFunctionfetchAWSSDKCredentials
fetchAWSSDKCredentials uses the Go AWS SDK's default credential chain to retrieve temporary credentials. This supports all credential sources that the
server/server.go:2196
↓ 1 callersMethodfetchDedup
fetchDedup tries peers then origin, deduplicating concurrent fetches. On success the body has been committed to local disk under cacheKey; the caller
cmd/cache-proxy/proxy.go:358
↓ 1 callersMethodfetchMessageBeforeNextFlush
(ctx context.Context, batches *queryLogKafkaPartitionBatches)
server/querylog_kafka_writer.go:230
↓ 1 callersMethodfetchOrigin
fetchOrigin forwards the request verbatim (headers, Host, signature) to the real origin and streams a successful body straight to the on-disk cache, r
cmd/cache-proxy/proxy.go:395
↓ 1 callersMethodfetchOriginOnce
(cacheKey string, r *http.Request)
cmd/cache-proxy/proxy.go:470
↓ 1 callersFunctionfindAllUnquotedDots
findAllUnquotedDots returns indices of all dots outside double-quoted identifiers.
transpiler/show_create.go:194
↓ 1 callersFunctionfindAvailablePort
Helper functions
tests/integration/harness.go:745
↓ 1 callersMethodfindCTEDependencies
findCTEDependencies extracts names of CTEs referenced in a query
transpiler/transform/writablecte.go:150
↓ 1 callersMethodfindIdleWorkerLocked
()
controlplane/k8s_pool_acquire.go:786
↓ 1 callersFunctionfindProjectRoot
(t *testing.T)
controlplane/admin/api_postgres_test.go:65
↓ 1 callersFunctionfindProjectRoot
()
tests/controlplane/controlplane_test.go:60
↓ 1 callersFunctionfindProjectRoot
()
tests/perf/harness_test.go:423
↓ 1 callersFunctionfirstSearchPathEntry
(searchPath string)
server/sqlcore/identifier.go:65
↓ 1 callersFunctionfirstUnsuccessfulDependency
(step Step, statusByStep map[string]StepStatus)
tests/scenario/core/runner.go:233
↓ 1 callersFunctionfixupAST
fixupAST applies DuckDB compatibility fixups to the parsed AST before deparsing. These are simple, unconditional cleanups that prevent PostgreSQL-spec
transpiler/transpiler.go:925
↓ 1 callersMethodflightAddr
()
controlplane/control.go:2165
↓ 1 callersMethodflushAllPartitionsWithRetry
(ctx context.Context, batches *queryLogKafkaPartitionBatches)
server/querylog_kafka_writer.go:307
↓ 1 callersMethodflushDuePartitionsWithRetry
(ctx context.Context, batches *queryLogKafkaPartitionBatches)
server/querylog_kafka_writer.go:298
↓ 1 callersMethodflushLoop
()
server/querylog_kafka.go:181
↓ 1 callersMethodflushPartition
(ctx context.Context, batches *queryLogKafkaPartitionBatches, partition int)
server/querylog_kafka_writer.go:332
↓ 1 callersFunctionfmtDuration
(seconds: number | null | undefined)
controlplane/admin/ui/src/lib/format.ts:128
↓ 1 callersFunctionfmtLeft
(ms: number)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:274
↓ 1 callersFunctionformatDifferences
formatDifferences formats a list of differences for display
tests/integration/setup_test.go:374
↓ 1 callersMethodforward
forward proxies to Prometheus and streams the JSON response through verbatim.
controlplane/admin/metrics_proxy.go:128
↓ 1 callersFunctionfreeLocalPort
freeLocalPort returns an unused localhost TCP port.
controlplane/admin/devserver/main.go:172
↓ 1 callersFunctionfullRead
(conn net.Conn, buf []byte)
controlplane/control.go:1634
↓ 1 callersFunctiongenerateBearerToken
()
controlplane/worker_rpc_security.go:56
↓ 1 callersMethodgenerateReturningSelect
generateReturningSelect converts a writable CTE into a SELECT that captures what the RETURNING clause would produce. For Airbyte's pattern, the RETUR
transpiler/transform/writablecte.go:381
↓ 1 callersFunctiongenerateSessionToken
()
duckdbservice/service.go:1706
↓ 1 callersMethodgenerateTempTableName
generateTempTableName creates a safe, unique temp table name
transpiler/transform/writablecte.go:933
↓ 1 callersFunctiongenerateToken
()
controlplane/worker_mgr.go:1408
↓ 1 callersFunctiongenerateWorkerRPCServerCertificate
()
controlplane/worker_rpc_security.go:64
↓ 1 callersMethodgetDefaultValue
getDefaultValue returns a sensible default value for an ignored parameter
transpiler/transform/setshow.go:441
↓ 1 callersMethodgetFuncAlias
(fc *pg_query.FuncCall)
transpiler/transform/funcalias.go:127
↓ 1 callersMethodgetFuncCall
getFuncCall extracts a FuncCall from a node if it is one
transpiler/transform/version.go:185
↓ 1 callersFunctiongetLocalIPs
()
cmd/cache-proxy/peers.go:214
↓ 1 callersMethodgetModel
(c *gin.Context)
controlplane/admin/models_api.go:164
↓ 1 callersMethodgetOperatorName
(aexpr *pg_query.A_Expr)
transpiler/transform/operators.go:605
↓ 1 callersMethodgetOrg
(c *gin.Context)
controlplane/admin/api.go:549
↓ 1 callersMethodgetWithClause
getWithClause extracts WITH clause from any statement type
transpiler/transform/writablecte.go:83
↓ 1 callersFunctiongithub_status_to_name_status
(status: str)
scripts/test_impact_plan.py:320
← previousnext →2,301–2,400 of 5,901, ranked by callers