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)
| 93 | // extension; both are caught by the POSTGRES_ prefix. Tracked separately |
| 94 | // from S3/parquet scans so we can attribute metadata-DB latency. |
| 95 | func 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 |
no outgoing calls
no test coverage detected