forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdf90401
committed
Fix errors in contrib/bloom 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.)Fix counting of tuples in current index page, too. This error wouldhave led to failing to write out the final page of the index if itcontained exactly one tuple, so that the last tuple of the relationwould not get indexed.Back-patch to 9.6 where contrib/bloom was added.Tomas Vondra and Tom LaneDiscussion:https://postgr.es/m/3b3d8eac-c709-0d25-088e-b98339a1b28a@2ndquadrant.com1 parent8132f0f commitdf90401
1 file changed
+11
-6
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| 36 | + | |
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
39 |
| - | |
| 40 | + | |
40 | 41 |
| |
41 | 42 |
| |
42 | 43 |
| |
| |||
102 | 103 |
| |
103 | 104 |
| |
104 | 105 |
| |
| 106 | + | |
| 107 | + | |
| 108 | + | |
105 | 109 |
| |
106 | 110 |
| |
| 111 | + | |
| 112 | + | |
| 113 | + | |
107 | 114 |
| |
108 | 115 |
| |
109 | 116 |
| |
| |||
137 | 144 |
| |
138 | 145 |
| |
139 | 146 |
| |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
| 147 | + | |
144 | 148 |
| |
145 | 149 |
| |
146 | 150 |
| |
147 | 151 |
| |
148 | 152 |
| |
149 | 153 |
| |
150 |
| - | |
| 154 | + | |
| 155 | + | |
151 | 156 |
| |
152 | 157 |
| |
153 | 158 |
| |
|
0 commit comments
Comments
(0)