forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit15cbbf8
committed
Preserve replica identity index across ALTER TABLE rewrite
If an index was explicitly set as replica identity index, this settingwas lost when a table was rewritten by ALTER TABLE. Because thissetting is part of pg_index but actually controlled by ALTERTABLE (not part of CREATE INDEX, say), we have to do some extra workto restore it.Based-on-patch-by: Quan Zongliang <quanzongliang@gmail.com>Reviewed-by: Euler Taveira <euler.taveira@2ndquadrant.com>Discussion:https://www.postgresql.org/message-id/flat/c70fcab2-4866-0d9f-1d01-e75e189db342@gmail.com1 parenta493f93 commit15cbbf8
File tree
5 files changed
+135
-0
lines changed- src
- backend
- commands
- utils/cache
- include/utils
- test/regress
- expected
- sql
5 files changed
+135
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
| 178 | + | |
178 | 179 |
| |
179 | 180 |
| |
180 | 181 |
| |
| |||
10314 | 10315 |
| |
10315 | 10316 |
| |
10316 | 10317 |
| |
| 10318 | + | |
| 10319 | + | |
| 10320 | + | |
| 10321 | + | |
| 10322 | + | |
| 10323 | + | |
| 10324 | + | |
| 10325 | + | |
| 10326 | + | |
| 10327 | + | |
| 10328 | + | |
| 10329 | + | |
| 10330 | + | |
| 10331 | + | |
| 10332 | + | |
| 10333 | + | |
10317 | 10334 |
| |
10318 | 10335 |
| |
10319 | 10336 |
| |
| |||
10332 | 10349 |
| |
10333 | 10350 |
| |
10334 | 10351 |
| |
| 10352 | + | |
10335 | 10353 |
| |
10336 | 10354 |
| |
10337 | 10355 |
| |
10338 | 10356 |
| |
10339 | 10357 |
| |
| 10358 | + | |
| 10359 | + | |
| 10360 | + | |
| 10361 | + | |
10340 | 10362 |
| |
10341 | 10363 |
| |
10342 | 10364 |
| |
| |||
10379 | 10401 |
| |
10380 | 10402 |
| |
10381 | 10403 |
| |
| 10404 | + | |
| 10405 | + | |
10382 | 10406 |
| |
10383 | 10407 |
| |
10384 | 10408 |
| |
| |||
10593 | 10617 |
| |
10594 | 10618 |
| |
10595 | 10619 |
| |
| 10620 | + | |
| 10621 | + | |
| 10622 | + | |
| 10623 | + | |
| 10624 | + | |
| 10625 | + | |
| 10626 | + | |
| 10627 | + | |
| 10628 | + | |
| 10629 | + | |
| 10630 | + | |
| 10631 | + | |
| 10632 | + | |
| 10633 | + | |
| 10634 | + | |
| 10635 | + | |
| 10636 | + | |
| 10637 | + | |
10596 | 10638 |
| |
10597 | 10639 |
| |
10598 | 10640 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3156 | 3156 |
| |
3157 | 3157 |
| |
3158 | 3158 |
| |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
| 3164 | + | |
| 3165 | + | |
| 3166 | + | |
| 3167 | + | |
| 3168 | + | |
| 3169 | + | |
| 3170 | + | |
| 3171 | + | |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
| 3177 | + | |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
| 3181 | + | |
| 3182 | + | |
| 3183 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
178 | 178 |
| |
179 | 179 |
| |
180 | 180 |
| |
| 181 | + | |
181 | 182 |
| |
182 | 183 |
| |
183 | 184 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
186 | 186 |
| |
187 | 187 |
| |
188 | 188 |
| |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
189 | 233 |
| |
| 234 | + | |
| 235 | + | |
190 | 236 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
82 | 101 |
| |
| 102 | + | |
| 103 | + | |
83 | 104 |
|
0 commit comments
Comments
(0)