Switch query fixing aclitems in ~15 from O(N^2) to O(N) in upgrade_adapt.sql
Michael Paquier <michael@paquier.xyz>
Switch query fixing aclitems in ~15 from O(N^2) to O(N) in upgrade_adapt.sql f4f2f2b was doing a sequential scan of pg_class before checking if a relation had attributes dependent on aclitem as data typewhen building the set of ALTER TABLE queries, but it would be costly on a regression database. While on it, make the query style more consistent with the rest. Reported-by: Justin Pryzby Discussion: https://postgr.es/m/20221223032724.GQ1153@telsasoft.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_upgrade/upgrade_adapt.sql | modified | +11 −15 |
Discussion
- [BUG] pg_upgrade test fails from older versions. 19 messages · 2022-12-19 → 2022-12-27