forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit649f179
committed
Fix tuple counting in SP-GiST index build.
Count the number of tuples in the index honestly, instead of assumingthat it's the same as the number of tuples in the heap. (It might bedifferent if the index is partial.)Back-patch to all supported versions.Tomas VondraDiscussion:https://postgr.es/m/3b3d8eac-c709-0d25-088e-b98339a1b28a@2ndquadrant.com1 parent7de4a1b commit649f179
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
| 35 | + | |
35 | 36 |
| |
36 | 37 |
| |
37 | 38 |
| |
| |||
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 |
| |
63 | 67 |
| |
64 | 68 |
| |
| |||
132 | 136 |
| |
133 | 137 |
| |
134 | 138 |
| |
| 139 | + | |
135 | 140 |
| |
136 | 141 |
| |
137 | 142 |
| |
| |||
146 | 151 |
| |
147 | 152 |
| |
148 | 153 |
| |
149 |
| - | |
| 154 | + | |
| 155 | + | |
150 | 156 |
| |
151 | 157 |
| |
152 | 158 |
| |
|
0 commit comments
Comments
(0)