forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbf14575
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 parent76e2b5a commitbf14575
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 |
| |
| |||
145 | 150 |
| |
146 | 151 |
| |
147 | 152 |
| |
148 |
| - | |
| 153 | + | |
| 154 | + | |
149 | 155 |
| |
150 | 156 |
| |
151 | 157 |
| |
|
0 commit comments
Comments
(0)