MCPcopy Create free account
hub / github.com/PostHog/duckgres / isPostgresScanOperator

Function isPostgresScanOperator

server/observe/tracing.go:95–97  ·  view source on GitHub ↗

isPostgresScanOperator returns true for postgres_scanner operators — roundtrips into the DuckLake metadata Postgres. DuckDB emits these as POSTGRES_SCAN / POSTGRES_SCAN_PUSHDOWN under the postgres_scanner extension; both are caught by the POSTGRES_ prefix. Tracked separately from S3/parquet scans so

(name string)

Source from the content-addressed store, hash-verified

93// extension; both are caught by the POSTGRES_ prefix. Tracked separately
94// from S3/parquet scans so we can attribute metadata-DB latency.
95func isPostgresScanOperator(name string) bool {
96 return strings.HasPrefix(strings.ToUpper(name), "POSTGRES_")
97}
98
99// collectOperatorTimings walks the operator tree and sums timings by category.
100// pgScanTime/pgScanRows are a strict subset of scanTime/scanRows: postgres_scan

Callers 1

collectOperatorTimingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected