- Notifications
You must be signed in to change notification settings - Fork5.2k
Commitd700518
committed
Don't reset relhasindex for partitioned tables on ANALYZE
Commit0e69f70 introduced code to analyze partitioned table;however, that code fails to preserve pg_class.relhasindex correctly.Fix by observing whether any indexes exist rather than accidentallyfalling through to assuming none do.Backpatch to 14.Author: Alexander Pyhalov <a.pyhalov@postgrespro.ru>Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>Reviewed-by: Zhihong Yu <zyu@yugabyte.com>Discussion:https://postgr.es/m/CALNJ-vS1R3Qoe5t4tbzxrkpBtzRbPq1dDcW4RmA_a+oqweF30w@mail.gmail.com1 parent2f7bae2 commitd700518
File tree
3 files changed
+61
-9
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+61
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
424 | | - | |
425 | | - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
426 | 428 | | |
427 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
428 | 440 | | |
| 441 | + | |
| 442 | + | |
429 | 443 | | |
430 | 444 | | |
431 | 445 | | |
432 | 446 | | |
| 447 | + | |
433 | 448 | | |
434 | | - | |
435 | 449 | | |
436 | | - | |
| 450 | + | |
437 | 451 | | |
438 | 452 | | |
439 | 453 | | |
| |||
572 | 586 | | |
573 | 587 | | |
574 | 588 | | |
575 | | - | |
| 589 | + | |
576 | 590 | | |
577 | 591 | | |
578 | 592 | | |
| |||
660 | 674 | | |
661 | 675 | | |
662 | 676 | | |
663 | | - | |
| 677 | + | |
664 | 678 | | |
665 | 679 | | |
666 | | - | |
| 680 | + | |
667 | 681 | | |
668 | 682 | | |
669 | 683 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
202 | 224 | | |
203 | 225 | | |
204 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
173 | 189 | | |
174 | 190 | | |
175 | 191 | | |
| |||
0 commit comments
Comments
(0)