MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

↓ 1 callersMethodrewriteArrayPosition3
rewriteArrayPosition3 rewrites the 3-arg PG array_position(arr, elem, start) into list_position(list_slice(arr, greatest(start,1), len(arr)), elem) +
transpiler/transform/functions_compat.go:44
↓ 1 callersFunctionrewriteBooleanLiteralComparison
(aexpr *pg_query.A_Expr, preserveNull bool)
transpiler/transform/boolpredicates.go:262
↓ 1 callersMethodrewriteDateTrunc3
rewriteDateTrunc3 rewrites the 3-arg PG14 date_trunc(field, ts, zone) into timezone(zone, date_trunc(field, timezone(zone, ts))). The 2-arg form is le
transpiler/transform/functions_compat.go:132
↓ 1 callersMethodrewriteDropObjects
(objects []*pg_query.Node)
transpiler/transform/logicalcatalog.go:79
↓ 1 callersMethodrewriteFormat
rewriteFormat rewrites format('...literal template...', args...) with PG %-specifiers into a || concatenation. Only fires for a literal first arg cont
transpiler/transform/functions_compat.go:65
↓ 1 callersFunctionrewriteIntervalTypmodCast
rewriteIntervalTypmodCast rewrites a field-qualified interval cast such as '2'::interval day into (2 || ' day')::interval, which DuckDB accepts. DuckD
transpiler/transpiler.go:990
↓ 1 callersMethodrewriteIsfiniteInterval
rewriteIsfiniteInterval replaces isfinite(<interval>) with TRUE, supplying the INTERVAL overload DuckDB lacks. Only fires when the argument is provabl
transpiler/transform/functions_compat.go:168
↓ 1 callersMethodrewriteOverlay
rewriteOverlay rewrites overlay(s placing repl from start [for len]) into substr(s,1,start-1) || repl || substr(s, start+len). Default len = length(re
transpiler/transform/functions_compat.go:148
↓ 1 callersMethodrewritePredicate
(node *pg_query.Node, preserveNull bool)
transpiler/transform/boolpredicates.go:208
↓ 1 callersMethodrewriteWritableCTE
( stmt *pg_query.RawStmt, ctes []*cteInfo, // Already in declaration order )
transpiler/transform/writablecte.go:291
↓ 1 callersFunctionrowScanShape
(rows *sql.Rows, schema *arrow.Schema)
duckdbservice/arrow_helpers.go:92
↓ 1 callersFunctionrunChildWorker
runChildWorker handles a single client connection in a child process. Returns the appropriate exit code.
server/worker.go:194
↓ 1 callersFunctionrunConcurrencyBenchmarks
runConcurrencyBenchmarks contains all the concurrency benchmark sub-tests. It is parameterized by a connection opener (openConn) so it can run against
tests/integration/ducklake_concurrency_test.go:215
↓ 1 callersFunctionrunConfigStoreMigrations
(db *gorm.DB)
controlplane/configstore/migrations.go:18
↓ 1 callersFunctionrunQueryTest
runQueryTest runs a single query test
tests/integration/setup_test.go:314
↓ 1 callersMethodrunStep
(ctx context.Context, runID string, step Step, statusByStep map[string]StepStatus, normalStepsBlocked bool)
tests/scenario/core/runner.go:128
↓ 1 callersFunctions3CredentialsChanged
s3CredentialsChanged returns true if S3 credentials differ between configs.
duckdbservice/activation.go:279
↓ 1 callersFunctionsameDurableReconnectTarget
(a, b DurableSessionRecord)
server/flightsqlingress/ingress.go:1999
↓ 1 callersMethodsaveCachedCert
(certPEM, keyPEM []byte)
server/tlscert/acme_dns.go:469
↓ 1 callersMethodscanExisting
()
cmd/cache-proxy/cache.go:132
↓ 1 callersFunctionscanQuoted
scanQuoted returns the index just past a quoted region starting at start (query[start] == quote), treating a doubled quote ('' or "") as an escape.
server/flightclient/flight_executor.go:952
↓ 1 callersFunctionscanWireFrames
scanWireFrames splits the server's output buffer into framed messages.
server/conn_skip_until_sync_test.go:129
↓ 1 callersFunctionscenarioRunError
(summary RunSummary, causes []error)
tests/scenario/core/runner.go:258
↓ 1 callersMethodscheduleRenewal
()
server/tlscert/acme_dns.go:195
↓ 1 callersMethodscrapeMetadataMetrics
()
duckdbservice/service.go:743
↓ 1 callersFunctionscrapeMetadataPoolMax
scrapeMetadataPoolMax reads DuckDB's pg_pool_max_connections setting via duckdb_settings(). A value of 0 means the in-process pool is disabled (we set
duckdbservice/service.go:779
↓ 1 callersMethodsendParameterDescription
(paramTypes []int32)
server/conn_extended_query.go:868
↓ 1 callersFunctionserialTypeName
serialTypeName returns the lowercased serial type name (serial/bigserial/...) if the column type is a SERIAL pseudo-type, or "" otherwise.
transpiler/transform/ddl.go:477
↓ 1 callersMethodserve
()
server/conn.go:806
↓ 1 callersFunctionserveClusterInfo
serveClusterInfo answers /api/v1/cluster-info with the cluster-context label (the kube context being served) and whether it denotes prod.
controlplane/admin/devserver/main.go:199
↓ 1 callersFunctionserveStatic
serveStatic serves the dashboard's static assets. Any unrecognized path falls back to the models explorer (single-page-style entry).
controlplane/admin/devserver/main.go:243
↓ 1 callersFunctionsessionColumnMetadataTableSQL
()
server/sessionmeta/sessionmeta.go:150
↓ 1 callersMethodsessionPIDsLocked
()
controlplane/session_mgr.go:784
↓ 1 callersFunctionsetAdminTokenCookie
(c *gin.Context, token string)
controlplane/admin/dashboard.go:145
↓ 1 callersMethodsetStopContext
(ctx context.Context)
server/querylog_kafka.go:266
↓ 1 callersFunctionsetUserTimeout
(conn *net.TCPConn, d time.Duration)
internal/netkeepalive/usertimeout_linux.go:17
↓ 1 callersFunctionsetupTestData
()
tests/integration/clients/clients_test.go:84
↓ 1 callersFunctionsharedStartupConfigKey
(configPath string)
controlplane/shared_startup_config.go:66
↓ 1 callersFunctionsharedWarmWorkerEnabled
()
duckdbservice/activation.go:377
↓ 1 callersFunctionshortImage
(image: string)
controlplane/admin/ui/src/pages/Workers.tsx:197
↓ 1 callersFunctionshortImage
(img: string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:285
↓ 1 callersFunctionshortRunIDToken
(runID string)
tests/scenario/runner_test.go:576
↓ 1 callersMethodshouldCache
shouldCache returns true if the request targets a host we want to cache. When no suffixes are configured, all GETs are cached (legacy behavior).
cmd/cache-proxy/proxy.go:127
↓ 1 callersFunctionshouldInstallExtension
(name string)
server/server.go:1407
↓ 1 callersFunctionshouldRefreshBundledExtension
shouldRefreshBundledExtension returns true for bundled extensions whose on-disk copy in DataDir/extensions/v<ver>/<platform>/ must be overwritten at s
server/server.go:1144
↓ 1 callersFunctionshutdownQueryLogWriterMetrics
(srv *http.Server)
querylog_writer_mode_kubernetes.go:229
↓ 1 callersFunctionsleepContext
(ctx context.Context, delay time.Duration)
cmd/cache-proxy/proxy.go:517
↓ 1 callersMethodsleepOneSecond
()
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:439
↓ 1 callersFunctionslicesEqual
slicesEqual compares two slices
tests/integration/compare.go:487
↓ 1 callersMethodsnapshot
()
controlplane/janitor_test.go:44
↓ 1 callersMethodsnapshotEvents
()
controlplane/session_mgr_drain_test.go:100
↓ 1 callersFunctionspanNames
(sr *tracetest.SpanRecorder)
cmd/cache-proxy/tracing_test.go:40
↓ 1 callersMethodspawnChildForTLS
spawnChildForTLS spawns a child worker process to handle TLS handshake and the rest of the connection. This is called after the parent has received an
server/parent.go:132
↓ 1 callersMethodspawnReservedWorkerForSlot
spawnReservedWorkerForSlot foreground-spawns the pod for an already-allocated spawning slot (see reserveSharedWorkerDecision, which created the slot a
controlplane/k8s_pool_spawn.go:574
↓ 1 callersMethodspawnWorkerBackground
spawnWorkerBackground spawns a worker pod without blocking AcquireWorker. The new worker becomes available for future sessions once ready.
controlplane/k8s_pool_spawn.go:550
↓ 1 callersFunctionsplitQualifiedName
splitQualifiedName splits a possibly-quoted SQL name like "schema"."table" into parts.
server/conn_copy.go:1098
↓ 1 callersFunctionsplitStartupOptions
splitStartupOptions splits on unescaped whitespace, honoring Postgres' backslash escaping of spaces within a value (e.g. `search_path=a,\ b`).
server/startup_options.go:48
↓ 1 callersFunctionsqlFromStep
(step core.Step)
tests/scenario/sql/steps.go:316
↓ 1 callersFunctionsqlLooksLikeRead
(sqlRaw: string)
controlplane/admin/ui/src/lib/format.ts:171
↓ 1 callersMethodsqlMessage
(retryAfter time.Duration)
controlplane/capacity_policy.go:53
↓ 1 callersFunctionstampWorkerLogIdentity
stampWorkerLogIdentity attaches the worker's tenant identity to the default logger, so EVERY worker log line — session create/destroy, query execution
duckdbservice/activation.go:169
↓ 1 callersMethodstartDisconnectMonitor
startDisconnectMonitor starts a goroutine that polls the client connection for disconnects using bufio.Reader.Peek. During query execution the message
server/conn.go:375
↓ 1 callersMethodstartDuckgres
startDuckgres starts the Duckgres server
tests/integration/harness.go:123
↓ 1 callersMethodstartFlightIngress
()
controlplane/control.go:2047
↓ 1 callersFunctionstartIntegrationPostgres
(t *testing.T)
controlplane/admin/api_postgres_test.go:47
↓ 1 callersMethodstartLeaderLoops
startLeaderLoops starts the janitor loop plus any attached extra leader-only loops (compute-usage drain) when this CP acquires the lease.
controlplane/janitor_leader_k8s.go:142
↓ 1 callersFunctionstartLocalDuckgres
(t *testing.T, username, password string, logOutput *bytes.Buffer)
tests/perf/harness_test.go:288
↓ 1 callersFunctionstartPortForward
startPortForward launches `kubectl port-forward deploy/<deploy> local:remote` for the given context and returns the running command.
controlplane/admin/devserver/main.go:161
↓ 1 callersFunctionstatusVariant
(s: number)
controlplane/admin/ui/src/pages/Audit.tsx:16
↓ 1 callersFunctionstepResultRecord
(result StepResult)
tests/scenario/core/artifacts.go:123
↓ 1 callersMethodstoreCreds
(roleARN string, creds *AssumedCredentials)
controlplane/sts_broker.go:242
↓ 1 callersMethodstreamRowsToClient
streamRowsToClient sends result rows over the wire protocol. The rows cursor must already be obtained before calling this function.
server/conn_results.go:89
↓ 1 callersMethodstreamRowsToClientExtended
streamRowsToClientExtended sends result rows for the extended query protocol. Unlike streamRowsToClient, this does NOT send ReadyForQuery, and support
server/conn_results.go:18
↓ 1 callersFunctionstringConstValue
stringConstValue returns the string value of an A_Const string literal.
transpiler/transform/literals.go:63
↓ 1 callersFunctionstringFromMap
(m map[string]any, key, fallback string)
tests/scenario/sql/steps.go:405
↓ 1 callersFunctionstripCreateOrReplaceTable
stripCreateOrReplaceTable detects `CREATE OR REPLACE TABLE ...`. On a match it returns the PostgreSQL-parseable `CREATE TABLE ...` form (with OR REPLA
transpiler/create_or_replace.go:32
↓ 1 callersFunctionstripFlightComments
stripFlightComments removes leading SQL comments (block and line) from a query.
duckdbservice/flight_handler.go:1016
↓ 1 callersFunctionstripLockingClauses
stripLockingClauses clears the locking clause on sel and on its set-operation arms. walkSelectStmt recurses into Larg/Rarg without invoking the visito
transpiler/transform/locking.go:40
↓ 1 callersFunctionstripPublicSchema
stripPublicSchema maps PostgreSQL's "public" schema to DuckDB's default schema in COPY table names. Handles both quoted ("public"."table") and unquote
server/conn_copy.go:43
↓ 1 callersMethodstripReturningClause
stripReturningClause removes the RETURNING clause from a DML statement
transpiler/transform/writablecte.go:922
↓ 1 callersFunctionstrip_diff_marker
(line: str)
scripts/test_impact_plan.py:232
↓ 1 callersMethodsumActiveConnectionLeaseVCPUs
(tx *gorm.DB, where string, args ...any)
controlplane/configstore/org_connections.go:477
↓ 1 callersMethodsumActiveOrgConnectionLeaseVCPUs
(tx *gorm.DB, orgID string)
controlplane/configstore/org_connections.go:473
↓ 1 callersFunctionsyncNsOptions
()
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:453
↓ 1 callersFunctiontenantSecretNamePrefix
(orgID string)
controlplane/configstore/tenant_refs.go:15
↓ 1 callersFunctiontestBatch
(ctx context.Context, r *reporter)
scripts/client-compat/clients/pgx/main.go:310
↓ 1 callersMethodtestBatch
()
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:260
↓ 1 callersMethodtestBatchInserts
()
scripts/client-compat/clients/jdbc/src/main/java/com/duckgres/compat/JdbcCompatTest.java:586
↓ 1 callersMethodtestConcurrentVersionQueries
(String suite)
scripts/client-compat/clients/jdbc/src/main/java/com/duckgres/compat/JdbcCompatTest.java:323
↓ 1 callersMethodtestConnection
()
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:98
↓ 1 callersFunctiontestConnectionProperties
(ctx context.Context, r *reporter)
scripts/client-compat/clients/pgx/main.go:169
↓ 1 callersFunctiontestConnectionProperties
()
scripts/client-compat/clients/node-postgres/test_node_postgres.js:110
↓ 1 callersMethodtestConnectionProperties
()
scripts/client-compat/clients/jdbc/src/main/java/com/duckgres/compat/JdbcCompatTest.java:162
↓ 1 callersFunctiontestControlPlaneTLSConfig
(t *testing.T)
controlplane/sni_kubernetes_test.go:322
↓ 1 callersFunctiontestDDLDML
(ctx context.Context, r *reporter)
scripts/client-compat/clients/pgx/main.go:199
↓ 1 callersMethodtestDDLDML
()
scripts/client-compat/clients/jdbc/src/main/java/com/duckgres/compat/JdbcCompatTest.java:428
↓ 1 callersMethodtestDatabaseMetaData
()
scripts/client-compat/clients/jdbc/src/main/java/com/duckgres/compat/JdbcCompatTest.java:371
↓ 1 callersFunctiontestDdlDml
()
scripts/client-compat/clients/node-postgres/test_node_postgres.js:155
↓ 1 callersMethodtestDdlDml
()
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:158
↓ 1 callersMethodtestMetabaseQueries
Test queries that Metabase fires on connect. These are the ones observed to hang sporadically.
scripts/client-compat/clients/jdbc/src/main/java/com/duckgres/compat/JdbcCompatTest.java:197
← previousnext →2,701–2,800 of 5,901, ranked by callers