Commit 943e082
catalog: Fix pg_index.indnatts and pg_class.relnatts for index rows (#36314)
indnatts was counting columns of the indexed table instead of the index
itself. relnatts was always 0 for index rows because mz_columns has no
entries keyed by index IDs. Follow-up to
#33204
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0839a26 commit 943e082
3 files changed
Lines changed: 40 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7111 | 7111 | | |
7112 | 7112 | | |
7113 | 7113 | | |
7114 | | - | |
7115 | | - | |
7116 | | - | |
7117 | | - | |
7118 | | - | |
7119 | | - | |
7120 | | - | |
7121 | | - | |
| 7114 | + | |
| 7115 | + | |
| 7116 | + | |
| 7117 | + | |
| 7118 | + | |
| 7119 | + | |
| 7120 | + | |
| 7121 | + | |
| 7122 | + | |
| 7123 | + | |
| 7124 | + | |
| 7125 | + | |
| 7126 | + | |
| 7127 | + | |
| 7128 | + | |
| 7129 | + | |
| 7130 | + | |
| 7131 | + | |
7122 | 7132 | | |
7123 | 7133 | | |
7124 | 7134 | | |
| |||
7334 | 7344 | | |
7335 | 7345 | | |
7336 | 7346 | | |
7337 | | - | |
7338 | | - | |
7339 | | - | |
7340 | | - | |
7341 | | - | |
7342 | | - | |
7343 | | - | |
7344 | | - | |
7345 | | - | |
| 7347 | + | |
7346 | 7348 | | |
7347 | 7349 | | |
7348 | 7350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
23 | 34 | | |
24 | 35 | | |
0 commit comments