If all rules share one sequence value, skip the loop and temp table and use the original single-pass CTE that the planner can fully optimize. The loop path only runs when multiple distinct sequence values exist (i.e. chaining is actually being used). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| queries | ||
| functions.sql | ||
| migrate_input_value_jsonb.sql | ||
| migrate_tps.sql | ||
| schema.sql | ||