- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitd3c0cc4
committed
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 arelation had attributes dependent on aclitem as data typewhen buildingthe set of ALTER TABLE queries, but it would be costly on a regressiondatabase.While on it, make the query style more consistent with the rest.Reported-by: Justin PryzbyDiscussion:https://postgr.es/m/20221223032724.GQ1153@telsasoft.com1 parent442e25d commitd3c0cc4
1 file changed
+11
-15
lines changedLines changed: 11 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
98 |
| - | |
| 98 | + | |
99 | 99 |
| |
100 |
| - | |
101 |
| - | |
| 100 | + | |
102 | 101 |
| |
103 | 102 |
| |
104 |
| - | |
105 |
| - | |
106 |
| - | |
107 |
| - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
108 | 109 |
| |
109 | 110 |
| |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 |
| - | |
| 111 | + | |
| 112 | + | |
117 | 113 |
| |
118 |
| - | |
| 114 | + | |
119 | 115 |
|
0 commit comments
Comments
(0)