- Notifications
You must be signed in to change notification settings - Fork28
Commitc35b472
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 parente2f1eb0 commitc35b472
1 file changed
+11
-6
lines changedLines changed: 11 additions & 6 deletions
Original 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 |
| |
| |||
138 | 145 |
| |
139 | 146 |
| |
140 | 147 |
| |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 |
| - | |
| 148 | + | |
145 | 149 |
| |
146 | 150 |
| |
147 | 151 |
| |
148 | 152 |
| |
149 | 153 |
| |
150 | 154 |
| |
151 |
| - | |
| 155 | + | |
| 156 | + | |
152 | 157 |
| |
153 | 158 |
| |
154 | 159 |
| |
|
0 commit comments
Comments
(0)