mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-25 00:01:55 +00:00
1478d12eb3
pg_get_full_schema built each column row with three per-column correlated subqueries (default value, primary-key EXISTS on pg_index, pk constraint name on pg_constraint). On large catalogs those run once per column and the introspection times out. Replace them with plain joins to pg_attrdef and the table's single primary-key constraint, so the planner does one hash/merge join instead of O(columns) index searches. Output is byte-for-byte identical. Fixes WIN-2239 Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>