MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

FunctionTestConnDetailByPID
TestConnDetailByPID covers the admin live-query detail snapshot: registry lookup, the (load-bearing) redaction guarantee, and state derivation.
server/conn_detail_test.go:57
FunctionTestConnSummariesByWorkerID
TestConnSummariesByWorkerID covers the live-list state snapshot: an active session reports "active" + a query-start; an idle-in-transaction session re
server/conn_detail_test.go:14
FunctionTestConnectionConfigDSNDefaultsDatabaseAndEscapesPassword
(t *testing.T)
tests/scenario/sql/connection_test.go:56
FunctionTestConnectionConfigDSNRejectsSuffixWithoutLeadingDot
(t *testing.T)
tests/scenario/sql/connection_test.go:75
FunctionTestConnectionConfigDSNRequiresSNIFields
(t *testing.T)
tests/scenario/sql/connection_test.go:42
FunctionTestConnectionConfigDSNUsesSNIHostAndTCPHostAddr
(t *testing.T)
tests/scenario/sql/connection_test.go:8
FunctionTestConnectionParameters
TestConnectionParameters tests different connection string options.
tests/integration/edge_cases_test.go:1008
FunctionTestConnectionRegistry
(t *testing.T)
server/conn_test.go:3853
FunctionTestConnectionRegistryOverwrite
(t *testing.T)
server/conn_test.go:3908
FunctionTestContainsPersistentSecretDDL
(t *testing.T)
server/usersecrets/redact_test.go:158
FunctionTestContainsReturning
TestContainsReturning tests the low-level scanner directly. Input must be pre-uppercased (matching how callers invoke it).
server/conn_test.go:1031
FunctionTestContainsReturningAnyDepth
(t *testing.T)
server/conn_test.go:1141
FunctionTestControlPlaneBasic
--------------------------------------------------------------------------- Tests --------------------------------------------------------------------
tests/controlplane/controlplane_test.go:326
FunctionTestControlPlaneIDLabelValue_StaysKubernetesSafe
(t *testing.T)
controlplane/k8s_pool_test.go:3115
FunctionTestControlPlaneJanitorHotIdleGoesThroughLifecycleWhenWired
(t *testing.T)
controlplane/janitor_test.go:285
FunctionTestControlPlaneJanitorOrphanGoesThroughLifecycleWhenWired
(t *testing.T)
controlplane/janitor_test.go:364
FunctionTestControlPlaneJanitorRunExpiresStaleInstances
(t *testing.T)
controlplane/janitor_test.go:120
FunctionTestControlPlaneJanitorRunInvokesOnStop
(t *testing.T)
controlplane/janitor_test.go:151
FunctionTestControlPlaneJanitorRunInvokesReconcilerAfterVersionReaper
(t *testing.T)
controlplane/janitor_test.go:423
FunctionTestControlPlaneJanitorRunInvokesStrandedPodReconciler
(t *testing.T)
controlplane/janitor_test.go:399
FunctionTestControlPlaneJanitorRunInvokesVersionReaperBeforeLifecycleObserve
(t *testing.T)
controlplane/janitor_test.go:454
FunctionTestControlPlaneJanitorRunObservesWorkerLifecycle
(t *testing.T)
controlplane/janitor_test.go:227
FunctionTestControlPlaneJanitorRunOnceContinuesAfterExpireError
(t *testing.T)
controlplane/janitor_test.go:482
FunctionTestControlPlaneJanitorRunRetiresOrphanedAndStuckWorkers
(t *testing.T)
controlplane/janitor_test.go:180
FunctionTestControlPlaneJanitorSkipsExpiredHotIdleWorkersProtectedByFloor
(t *testing.T)
controlplane/janitor_test.go:315
FunctionTestControlPlaneJanitorSkipsHotIdlePodDeleteAfterLifecycleCASMiss
(t *testing.T)
controlplane/janitor_test.go:250
FunctionTestControlPlaneManifestsExposeOptionalKafkaQueryLogEnv
(t *testing.T)
tests/manifests/manifests_test.go:135
FunctionTestControlPlaneRBACDefinesSharedWorkerServiceAccount
(t *testing.T)
tests/manifests/manifests_test.go:42
FunctionTestControlPlaneRBACIncludesLeaseAccess
(t *testing.T)
tests/manifests/manifests_test.go:17
FunctionTestControlPlaneRBACIncludesSharedWorkerConfigMapRead
(t *testing.T)
tests/manifests/manifests_test.go:30
FunctionTestControlPlaneRuntimeTrackerMarkDraining
(t *testing.T)
controlplane/runtime_tracker_test.go:75
FunctionTestControlPlaneRuntimeTrackerStartHeartbeats
(t *testing.T)
controlplane/runtime_tracker_test.go:50
FunctionTestControlPlaneWorkerAcquireAndSpawnMetrics
(t *testing.T)
controlplane/flight_ingress_metrics_test.go:10
FunctionTestControlPlaneWorkerQueueDepthGauge
(t *testing.T)
controlplane/flight_ingress_metrics_test.go:28
FunctionTestConvertAlterTableToAlterView
(t *testing.T)
transpiler/transpiler_test.go:2954
FunctionTestConvertDropTableToDropView
(t *testing.T)
transpiler/transpiler_test.go:3033
FunctionTestCopyBinaryRegex
(t *testing.T)
server/conn_test.go:2918
FunctionTestCopyCommandTypeDetection
(t *testing.T)
server/conn_test.go:2769
FunctionTestCopyFromStdin
TestCopyFromStdin tests COPY FROM STDIN functionality
tests/integration/copy_test.go:10
FunctionTestCopyFromStdinMultilineJSON
TestCopyFromStdinMultilineJSON tests COPY with multi-line JSON Note: Due to using DuckDB's CSV parser (not PostgreSQL's text format parser), escape se
tests/integration/copy_test.go:270
FunctionTestCopyFromStdinRegex
(t *testing.T)
server/conn_test.go:2103
FunctionTestCopyFromStdinStreamsBytesAndDescriptor
(t *testing.T)
server/flightclient/copyfromstdin_test.go:59
FunctionTestCopyFromStdinWithSpecialChars
TestCopyFromStdinWithSpecialChars tests COPY with special characters
tests/integration/copy_test.go:200
FunctionTestCopyOptionRegexes
(t *testing.T)
server/conn_test.go:2185
FunctionTestCopyStreamReArmsIdleDeadline
TestCopyStreamReArmsIdleDeadline proves the COPY-FROM-STDIN forwarding reader (copyDataWireReader) re-arms the connection idle read deadline on EVERY
server/conn_idle_test.go:65
FunctionTestCopyToStdout
TestCopyToStdout tests COPY TO STDOUT functionality Note: lib/pq's Query() doesn't support COPY TO STDOUT directly because the COPY protocol uses diff
tests/integration/copy_test.go:328
FunctionTestCopyToStdoutRegex
(t *testing.T)
server/conn_test.go:1997
FunctionTestCountDollarParams
(t *testing.T)
server/conn_test.go:3753
FunctionTestCountHotIdleWorkersPostgresFiltersCompatibleWorkers
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:303
FunctionTestCountParameters
(t *testing.T)
transpiler/transpiler_test.go:2712
FunctionTestCountParametersRegex
(t *testing.T)
transpiler/transpiler_test.go:46
FunctionTestCrashRemovesWorkerFromPool
(t *testing.T)
controlplane/worker_mgr_process_test.go:573
FunctionTestCreateOrgAcceptsDefaultWorkerMinHotIdle
(t *testing.T)
controlplane/admin/api_test.go:1890
FunctionTestCreateOrgAcceptsDefaultWorkerProfile
(t *testing.T)
controlplane/admin/api_test.go:1870
FunctionTestCreateOrgAcceptsLongValidHostnameAlias
(t *testing.T)
controlplane/admin/api_test.go:1482
FunctionTestCreateOrgEmptyHostnameAliasIsTreatedAsNone
(t *testing.T)
controlplane/admin/api_test.go:1399
FunctionTestCreateOrgPersistsHostnameAlias
(t *testing.T)
controlplane/admin/api_test.go:1377
FunctionTestCreateOrgRejectsHostnameAliasOver63Chars
(t *testing.T)
controlplane/admin/api_test.go:1499
FunctionTestCreateOrgRejectsInvalidDefaultWorkerTTL
(t *testing.T)
controlplane/admin/api_test.go:1908
FunctionTestCreateOrgRejectsInvalidHostnameAlias
(t *testing.T)
controlplane/admin/api_test.go:1446
FunctionTestCreateOrgRejectsNestedWarehousePayload
(t *testing.T)
controlplane/admin/api_test.go:1065
FunctionTestCreateSessionAcceptsMismatchedEpochInSharedWarmMode
(t *testing.T)
duckdbservice/flight_handler_test.go:710
FunctionTestCreateSessionDefaultsToAttachedDuckLakeCatalog
(t *testing.T)
duckdbservice/service_test.go:214
FunctionTestCreateSessionObservesWorkerCapacityExhaustion
(t *testing.T)
controlplane/session_mgr_test.go:61
FunctionTestCreateSessionRejectsSecondSessionWhenMaxIsOne
With MaxSessions=1 (how the control plane spawns remote worker pods), a worker serves exactly one client query session — a second concurrent CreateSes
duckdbservice/service_test.go:84
FunctionTestCreateSessionRejectsWhileDraining
(t *testing.T)
duckdbservice/flight_handler_test.go:449
FunctionTestCreateSessionRequiresActivationForSharedWarmMode
(t *testing.T)
duckdbservice/flight_handler_test.go:628
FunctionTestCreateSessionSendFailureDestroysSession
(t *testing.T)
duckdbservice/flight_handler_test.go:594
FunctionTestCreateSessionWithRegisteredCancel_CancelQueryCancelsWait
(t *testing.T)
controlplane/control_cancel_test.go:16
FunctionTestCreateSpawningWorkerSlotConcurrentCrossOrgUniqueIDs
Regression: concurrent CreateSpawningWorkerSlot calls for DIFFERENT orgs must never allocate the same worker_id. The old SELECT MAX(worker_id)+1 alloc
tests/configstore/runtime_store_postgres_test.go:981
FunctionTestCreateSpawningWorkerSlotIgnoresIncompatibleHotIdleForOrgCapPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:1056
FunctionTestCreateSpawningWorkerSlotPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:933
FunctionTestCreateSpawningWorkerSlotRespectsOrgCap
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:1031
FunctionTestCreateUserAcceptsMaxVCPUs
(t *testing.T)
controlplane/admin/api_test.go:309
FunctionTestCreateUserIgnoresRemovedDefaultCatalogField
(t *testing.T)
controlplane/admin/api_test.go:280
FunctionTestCreateUserRejectsNegativeMaxVCPUs
(t *testing.T)
controlplane/admin/api_test.go:336
FunctionTestCredentialRefreshSchedulerRunStopsOnContextCancel
TestCredentialRefreshSchedulerRunStopsOnContextCancel confirms ctx cancellation actually unblocks Run — required so SetupMultiTenant doesn't leak the
controlplane/credential_refresh_scheduler_test.go:173
FunctionTestCredentialRefreshSchedulerTickContinuesAfterRefreshError
TestCredentialRefreshSchedulerTickContinuesAfterRefreshError makes sure a refresh failure for one worker does not abort the rest of the batch — each w
controlplane/credential_refresh_scheduler_test.go:118
FunctionTestCredentialRefreshSchedulerTickHandlesListError
TestCredentialRefreshSchedulerTickHandlesListError ensures a transient DB error doesn't crash the scheduler — the next tick will retry.
controlplane/credential_refresh_scheduler_test.go:156
FunctionTestCredentialRefreshSchedulerTickRefreshesDueWorkers
TestCredentialRefreshSchedulerTickRefreshesDueWorkers proves the scheduler looks each due worker up in the local pool and fires the refresh hook for e
controlplane/credential_refresh_scheduler_test.go:41
FunctionTestCredentialRefreshSchedulerTickSkipsMissingFromPool
TestCredentialRefreshSchedulerTickSkipsMissingFromPool ensures workers we no longer hold in the in-memory pool are silently skipped — we'll catch them
controlplane/credential_refresh_scheduler_test.go:91
FunctionTestCursorCloseAllCursors
(t *testing.T)
server/conn_test.go:3581
FunctionTestCursorCloseNonexistent
(t *testing.T)
server/conn_test.go:3622
FunctionTestCursorCloseSingle
(t *testing.T)
server/conn_test.go:3601
FunctionTestCursorExtendedQuery
TestCursorExtendedQuery exercises the extended-query-protocol cursor path (cursorOpDeclare/cursorOpFetch/cursorOpClose) with pgx.
tests/integration/cursor_test.go:255
FunctionTestCursorPostgresParity
TestCursorPostgresParity runs the shared cursor flows against the comparison PostgreSQL 16 instance, keeping the expectations in the flows differentia
tests/integration/cursor_test.go:219
FunctionTestCursorSimpleQuery
TestCursorSimpleQuery exercises the simple-query-protocol cursor path against Duckgres.
tests/integration/cursor_test.go:191
FunctionTestCustomMacrosCoverCatalogMacros
TestCustomMacrosCoverCatalogMacros cross-checks CustomMacros against the macros actually registered in server/catalog.go so the next macro added there
transpiler/transform/wiring_walk_test.go:93
FunctionTestDBeaverQueries
TestDBeaverQueries tests queries commonly issued by DBeaver
tests/integration/clients/clients_test.go:296
FunctionTestDDLAlterTable
TestDDLAlterTable tests ALTER TABLE variations
tests/integration/ddl_test.go:105
FunctionTestDDLComment
TestDDLComment tests COMMENT ON
tests/integration/ddl_test.go:334
FunctionTestDDLConstraints
TestDDLConstraints tests constraint-related DDL
tests/integration/ddl_test.go:357
FunctionTestDDLCreateTable
TestDDLCreateTable tests CREATE TABLE variations
tests/integration/ddl_test.go:8
FunctionTestDDLDropTable
TestDDLDropTable tests DROP TABLE variations
tests/integration/ddl_test.go:156
FunctionTestDDLIndexes
TestDDLIndexes tests CREATE/DROP INDEX (may be no-ops)
tests/integration/ddl_test.go:229
FunctionTestDDLSchemas
TestDDLSchemas tests CREATE/DROP SCHEMA
tests/integration/ddl_test.go:267
FunctionTestDDLTruncate
TestDDLTruncate tests TRUNCATE
tests/integration/ddl_test.go:299
FunctionTestDDLViews
TestDDLViews tests CREATE/DROP VIEW
tests/integration/ddl_test.go:188
FunctionTestDDL_AlterAddColumnSilentNullStripped
(t *testing.T)
transpiler/transform/ddl_test.go:167
FunctionTestDDL_AlterColumnTypeUsingRejected
(t *testing.T)
transpiler/transform/ddl_test.go:190
← previousnext →4,001–4,100 of 5,901, ranked by callers