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
↓ 1 callers
Method
grantNextEligibleOrgConnectionRequestLocked
(tx *gorm.DB, tables orgConnectionRuntimeTables, orgID string, limitLookup func(string) OrgResourceLimits, now
controlplane/configstore/org_connections.go:235
↓ 1 callers
Method
handleCancelRequestIsolated
handleCancelRequestIsolated handles a cancel request in process isolation mode.
server/server.go:2586
↓ 1 callers
Method
handleCloseCursor
handleCloseCursor handles CLOSE in the Simple Query protocol.
server/conn_cursor.go:406
↓ 1 callers
Method
handleCloseCursorExtended
handleCloseCursorExtended handles CLOSE cursor in the Extended Query protocol.
server/conn_cursor.go:525
↓ 1 callers
Method
handleConn
(client net.Conn)
tests/integration/latency_proxy.go:78
↓ 1 callers
Method
handleConnect
handleConnect tunnels an HTTPS CONNECT request. We don't cache — just copy bytes between client and origin. Required because SET GLOBAL http_proxy mak
cmd/cache-proxy/proxy.go:160
↓ 1 callers
Method
handleConnection
(conn net.Conn)
server/server.go:2390
↓ 1 callers
Method
handleConnectionInProcess
handleConnectionInProcess handles a connection in the current process (non-isolated mode).
server/server.go:2421
↓ 1 callers
Method
handleCopyIn
handleCopyIn handles COPY ... FROM STDIN
server/conn_copy.go:533
↓ 1 callers
Method
handleCopyInBinary
handleCopyInBinary handles COPY ... FROM STDIN with binary format. It parses the PostgreSQL binary COPY format, decodes each field, and INSERTs rows.
server/conn_copy.go:1021
↓ 1 callers
Method
handleCopyInRemoteStreaming
handleCopyInRemoteStreaming handles COPY FROM STDIN when the executor is remote (e.g. Flight, multitenant K8s worker). The control plane does not shar
server/conn_copy.go:743
↓ 1 callers
Method
handleCopyOutBinary
handleCopyOutBinary handles COPY ... TO STDOUT (FORMAT binary) Implements PostgreSQL's binary COPY format: header, binary-encoded tuples, trailer. Sen
server/conn_copy.go:405
↓ 1 callers
Method
handleDeclareCursor
handleDeclareCursor handles DECLARE cursor in the Simple Query protocol.
server/conn_cursor.go:241
↓ 1 callers
Method
handleDeclareCursorExtended
handleDeclareCursorExtended handles DECLARE cursor in the Extended Query protocol.
server/conn_cursor.go:432
↓ 1 callers
Method
handleFetchCursorExtended
handleFetchCursorExtended handles FETCH in the Extended Query protocol.
server/conn_cursor.go:443
↓ 1 callers
Method
handleMultiStatementQuery
handleMultiStatementQuery processes multiple semicolon-separated statements from a single Q (simple query) message. Per the PostgreSQL wire protocol,
server/conn_query_exec.go:326
↓ 1 callers
Method
handleParse
(body []byte)
server/conn_extended_query.go:20
↓ 1 callers
Method
handlePgCursorsQuery
handlePgCursorsQuery handles SELECT FROM pg_cursors in the Simple Query protocol. Returns a single row with value "1" if the cursor exists, or zero ro
server/conn_cursor.go:174
↓ 1 callers
Method
handlePgCursorsQueryExtended
handlePgCursorsQueryExtended handles SELECT FROM pg_cursors in the Extended Query protocol.
server/conn_cursor.go:197
↓ 1 callers
Method
handlePgStatActivity
handlePgStatActivity handles SELECT FROM pg_stat_activity in the Simple Query protocol.
server/conn_pg_stat_activity.go:79
↓ 1 callers
Method
handlePgStatActivityExtended
handlePgStatActivityExtended handles SELECT FROM pg_stat_activity in the Extended Query protocol.
server/conn_pg_stat_activity.go:100
↓ 1 callers
Method
handleSpecialFunction
(fc *pg_query.FuncCall, funcName string, funcNameIdx int)
transpiler/transform/functions.go:287
↓ 1 callers
Method
handleSubstring
handleSubstring dispatches PostgreSQL substring() by arg shape: - 2-arg with a string-literal second arg — the SQL regex FROM-pattern form — becomes r
transpiler/transform/functions_compat.go:210
↓ 1 callers
Method
handleToChar
handleToChar converts PostgreSQL to_char() to DuckDB equivalents. to_char(timestamp, format) → strftime(timestamp, converted_format) to_char(number, f
transpiler/transform/functions.go:444
↓ 1 callers
Method
handleToDate
handleToDate converts PostgreSQL to_date(text, format) to strptime with converted format.
transpiler/transform/functions.go:474
↓ 1 callers
Method
handleToTimestamp
handleToTimestamp converts 2-arg PostgreSQL to_timestamp(text, format) to strptime. 1-arg to_timestamp(epoch) is left unchanged (DuckDB handles it nat
transpiler/transform/functions.go:488
↓ 1 callers
Method
handleUpgrade
handleUpgrade triggers a graceful upgrade via tableflip: stops subsystems that need exclusive ports, calls upg.Upgrade() to spawn the child process wi
controlplane/control.go:1824
↓ 1 callers
Method
handleUserSecretDDLExtended
handleUserSecretDDLExtended intercepts persistent-secret DDL at Execute time on the extended query protocol (ReadyForQuery is sent by Sync). Returns t
server/conn_user_secrets.go:207
↓ 1 callers
Method
handleUserSecretDDLSimple
handleUserSecretDDLSimple intercepts persistent-secret DDL on the simple query protocol. Returns true when fully handled (responses written, including
server/conn_user_secrets.go:189
↓ 1 callers
Function
hasAnyPrefix
hasAnyPrefix returns true if s starts with any of the given keyword prefixes at a word boundary: the prefix must be followed by end-of-string or a non
transpiler/transpiler.go:767
↓ 1 callers
Function
hasAuthorizationHeader
(md metadata.MD)
server/flightsqlingress/ingress.go:443
↓ 1 callers
Function
hasBundledExtensionBinary
(name string)
server/server.go:1416
↓ 1 callers
Function
hasCommandPrefix
hasCommandPrefix checks if query starts with the given command prefix, ensuring it's followed by a word boundary (space, newline, semicolon, or end of
server/conn.go:794
↓ 1 callers
Function
hasHexPrefix
hasHexPrefix reports whether a string uses Postgres bytea hex format (\x...).
transpiler/transform/literals.go:78
↓ 1 callers
Method
hasSQLTransactionDrain
()
duckdbservice/service.go:169
↓ 1 callers
Function
hasTidCasts
hasTidCasts checks if a BETWEEN bounds list contains ::tid type casts.
transpiler/transform/ctid.go:80
↓ 1 callers
Method
hasTrackedTxDrain
(txnKey string)
duckdbservice/service.go:159
↓ 1 callers
Method
hasWritableCTE
hasWritableCTE checks if any CTE contains DML
transpiler/transform/writablecte.go:140
↓ 1 callers
Function
hash
(s: string)
controlplane/admin/ui/src/components/Sparkline.tsx:33
↓ 1 callers
Method
headroomTarget
headroomTarget resolves this tick's slot count and shape from the spawn log and the live fleet. ok=false means a transient error (already logged); the
controlplane/headroom.go:239
↓ 1 callers
Method
healthCheckPayloadForWorker
(worker *ManagedWorker)
controlplane/k8s_pool_helpers.go:106
↓ 1 callers
Method
heartbeatActivatingWorker
heartbeatActivatingWorker re-persists the worker's activating row on a timer until stop is closed, keeping updated_at fresh while activate() is in fli
controlplane/k8s_pool_acquire.go:279
↓ 1 callers
Method
heartbeatLoop
(ctx context.Context)
controlplane/runtime_tracker.go:64
↓ 1 callers
Method
idleReaper
idleReaper periodically retires workers that have been idle for longer than idleTimeout.
controlplane/worker_mgr.go:807
↓ 1 callers
Method
idleReaper
idleReaper periodically retires workers that have been idle too long and reaps stuck activating/reserved workers.
controlplane/k8s_pool_lifecycle.go:773
↓ 1 callers
Function
ignoredForEmpty
(p: any)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:260
↓ 1 callers
Function
imageLabel
(pod: any)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:289
↓ 1 callers
Function
indexOrEnd
(query string, start int, sub string)
server/flightclient/flight_executor.go:966
↓ 1 callers
Function
initAttachedDuckLakeSessionMetadata
(conn *sql.Conn, db *sql.DB, cfg server.Config)
duckdbservice/service.go:1684
↓ 1 callers
Function
initTracing
initTracing configures an OTLP trace exporter when OTEL_EXPORTER_OTLP_TRACES_ENDPOINT (or DUCKGRES_TRACE_ENDPOINT) is set, mirroring internal/cliboot.
cmd/cache-proxy/tracing.go:34
↓ 1 callers
Function
insertQueryLogKafkaEvent
insertQueryLogKafkaEvent skips an event_id that is already present. This makes normal single-consumer Kafka replays idempotent, but it is not a storag
server/querylog_kafka_writer.go:735
↓ 1 callers
Method
insertToSelect
insertToSelect converts INSERT...RETURNING to a SELECT that captures inserted rows For INSERT...SELECT, we just return the SELECT. For INSERT...VALUES
transpiler/transform/writablecte.go:592
↓ 1 callers
Function
installed
()
internal/crashhandler/handler_cgo.go:12
↓ 1 callers
Function
intFromWith
(step core.Step, key string, fallback int)
tests/scenario/dbt/steps.go:361
↓ 1 callers
Function
intFromWith
(step core.Step, key string)
tests/scenario/provision/steps.go:265
↓ 1 callers
Function
intPtr
(n int)
configresolve/resolve.go:132
↓ 1 callers
Function
interceptShowCreate
interceptShowCreate rewrites SHOW CREATE TABLE/VIEW [catalog.][schema.]name into a DuckDB metadata query. This runs before pg_query parsing because th
transpiler/show_create.go:30
↓ 1 callers
Function
isAllDigits
(s string)
transpiler/transform/operators.go:943
↓ 1 callers
Function
isAllowedWorkerLifecycleTransition
(current, next WorkerLifecycleState)
controlplane/worker_state.go:171
↓ 1 callers
Function
isByteaTypeName
isByteaTypeName reports whether a TypeName's final element is `bytea`.
transpiler/transform/literals.go:54
↓ 1 callers
Function
isCapacityExhaustedError
(err error)
controlplane/acquire_metrics.go:123
↓ 1 callers
Function
isContextBackgroundCall
(expr ast.Expr)
duckdbservice/service_test.go:66
↓ 1 callers
Function
isCtidRef
isCtidRef checks if a node is a ColumnRef referencing ctid or rowid.
transpiler/transform/ctid.go:62
↓ 1 callers
Function
isDNSLabel
(label string)
controlplane/configstore/store.go:351
↓ 1 callers
Function
isDateFormat
isDateFormat checks if a PG format string is a date/time format (vs number format).
transpiler/transform/functions.go:537
↓ 1 callers
Function
isDuckLakeMetadataConnectionLost
isDuckLakeMetadataConnectionLost returns true if the error indicates the DuckLake metadata store connection was lost during a transaction. This typica
server/conn_errors.go:55
↓ 1 callers
Function
isDuplicateRuntimeWorkerClaim
(worker *ManagedWorker, claimed *configstore.WorkerRecord, assignment *WorkerAssignment)
controlplane/k8s_pool_acquire.go:543
↓ 1 callers
Function
isExplainKey
(value string)
duckdbservice/arrow_helpers_test.go:1176
↓ 1 callers
Function
isExplainPlanSchema
(schema *arrow.Schema)
duckdbservice/arrow_helpers.go:110
↓ 1 callers
Function
isExplainQuery
isExplainQuery reports whether the (already upper-cased) query is an EXPLAIN statement, i.e. starts with the EXPLAIN keyword followed by a delimiter.
duckdbservice/arrow_helpers.go:124
↓ 1 callers
Function
isIntegerConst
isIntegerConst reports whether a node is an integer A_Const (possibly inside a unary minus, which pg_query folds into the constant for literals like -
transpiler/transform/functions_compat.go:238
↓ 1 callers
Method
isLogTwoArg
isLogTwoArg checks if a FuncCall is log() with exactly 2 arguments.
transpiler/transform/functions.go:399
↓ 1 callers
Function
isNil
(i contextQueryer)
duckdbservice/arrow_helpers.go:140
↓ 1 callers
Function
isOIDType
isOIDType returns true if the type name represents an OID-like type.
transpiler/transform/typecast.go:585
↓ 1 callers
Function
isPlaceholder
(p: any)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:126
↓ 1 callers
Function
isPlaceholderPod
isPlaceholderPod classifies a capacity-headroom placeholder: the cluster-autoscaler overprovisioning label, a negative priority, or an all-pause-image
controlplane/admin/cluster.go:317
↓ 1 callers
Function
isPostgresScanOperator
isPostgresScanOperator returns true for postgres_scanner operators — roundtrips into the DuckLake metadata Postgres. DuckDB emits these as POSTGRES_SC
server/observe/tracing.go:95
↓ 1 callers
Function
isProvablyInterval
(node *pg_query.Node)
transpiler/transform/functions_compat.go:344
↓ 1 callers
Function
isProxiedPath
isProxiedPath reports whether a request should be forwarded to the control plane rather than served from the local static dir.
controlplane/admin/devserver/main.go:224
↓ 1 callers
Function
isRetriableOriginFetchError
(err error)
cmd/cache-proxy/proxy.go:531
↓ 1 callers
Function
isReturningTrailer
isReturningTrailer reports whether c is a valid character immediately after the RETURNING keyword (i.e., not a continuation of an identifier).
server/conn.go:1778
↓ 1 callers
Function
isScanOperator
isScanOperator returns true for operators that represent data source access (metadata lookup + S3/file I/O + decode).
server/observe/tracing.go:85
↓ 1 callers
Function
isSecretNotFoundError
isSecretNotFoundError matches DuckDB's error for dropping a secret that does not exist ("Invalid Input Error: Failed to remove non-existent secret wit
server/conn_user_secrets.go:37
↓ 1 callers
Function
isSensitiveKey
(key string)
tests/scenario/provision/redact.go:67
↓ 1 callers
Function
isSessionType
(expr ast.Expr)
duckdbservice/session_conn_guard_test.go:108
↓ 1 callers
Function
isTextType
isTextType returns true if the type name represents a text-like type.
transpiler/transform/typecast.go:594
↓ 1 callers
Function
isTimeoutErr
(err error)
server/startup_timeout_test.go:119
↓ 1 callers
Function
isTransactionAborted
(err error)
duckdbservice/transient.go:139
↓ 1 callers
Function
isUniqueViolation
isUniqueViolation reports whether err comes from a Postgres 23505 unique-constraint violation. The pgx/jackc driver surfaces the SQLSTATE through a me
controlplane/provisioning/api.go:25
↓ 1 callers
Method
isUnsupportedAlterCommand
isUnsupportedAlterCommand checks if an ALTER TABLE command is unsupported by DuckLake
transpiler/transform/ddl.go:457
↓ 1 callers
Method
isUnsupportedColumnConstraint
isUnsupportedColumnConstraint checks if a column-level constraint is unsupported
transpiler/transform/ddl.go:305
↓ 1 callers
Method
isUnsupportedDefault
isUnsupportedDefault checks if a DEFAULT expression is unsupported by DuckLake. DuckLake only supports simple numeric and string literals as defaults.
transpiler/transform/ddl.go:320
↓ 1 callers
Method
isVersionCall
isVersionCall checks if a FuncCall is version() or pg_catalog.version()
transpiler/transform/version.go:196
↓ 1 callers
Function
isWrappedEOF
(err error)
controlplane/control_test.go:275
↓ 1 callers
Function
jitteredOriginRetryDelay
(backoff, maxBackoff time.Duration)
cmd/cache-proxy/proxy.go:460
↓ 1 callers
Function
jsonEqual
jsonEqual compares two JSON values
tests/integration/compare.go:468
↓ 1 callers
Function
jsonFuncReturnsNonJSON
jsonFuncReturnsNonJSON reports whether a json*-named function returns a non-JSON value (VARCHAR, BIGINT, BOOLEAN, ...), so its result concatenated wit
transpiler/transform/operators.go:700
↓ 1 callers
Method
kafkaMessage
(entry QueryLogEntry)
server/querylog_kafka.go:300
↓ 1 callers
Method
killStuckParent
killStuckParent sends SIGTERM (then SIGKILL) to the tableflip parent process that failed to exit after the previous upgrade. Returns true if the paren
controlplane/control.go:1907
↓ 1 callers
Function
kubeSecret
kubeSecret reads a base64 secret value via kubectl and decodes it.
controlplane/admin/devserver/main.go:146
← previous
next →
2,401–2,500 of 5,901, ranked by callers