- Notifications
You must be signed in to change notification settings - Fork5.1k
Commit771cfe2
committed
Avoid unnecessary GinFormTuple() calls for incompressible posting lists.
Previously, we attempted to form a posting list tuple even whenginCompressPostingList() failed to compress the posting list due toits size. While there was no functional failure, it always wasted oneGinFormTuple() call when item pointers didn't fit in a posting listtuple.This commit ensures that a GIN index tuple is formed only when allitem pointers in the posting list are successfully compressed.Author: Arseniy Mukhin <arseniy.mukhin.dev@gmail.com>Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>Discussion:https://postgr.es/m/CAE7r3M+C=jcpTD93f_RBHrQp3C+=TAXFs+k4tTuZuuxboK8AvA@mail.gmail.com1 parentec8719c commit771cfe2
1 file changed
+13
-9
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
218 | 218 |
| |
219 | 219 |
| |
220 | 220 |
| |
221 |
| - | |
| 221 | + | |
| 222 | + | |
222 | 223 |
| |
223 | 224 |
| |
224 | 225 |
| |
| |||
235 | 236 |
| |
236 | 237 |
| |
237 | 238 |
| |
238 |
| - | |
239 |
| - | |
240 |
| - | |
241 |
| - | |
| 239 | + | |
| 240 | + | |
242 | 241 |
| |
243 | 242 |
| |
244 | 243 |
| |
245 | 244 |
| |
246 | 245 |
| |
247 | 246 |
| |
248 |
| - | |
249 | 247 |
| |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
250 | 252 |
| |
251 | 253 |
| |
252 | 254 |
| |
| |||
293 | 295 |
| |
294 | 296 |
| |
295 | 297 |
| |
| 298 | + | |
296 | 299 |
| |
297 | 300 |
| |
298 |
| - | |
299 |
| - | |
| 301 | + | |
| 302 | + | |
300 | 303 |
| |
301 | 304 |
| |
302 | 305 |
| |
303 | 306 |
| |
304 | 307 |
| |
305 |
| - | |
306 | 308 |
| |
| 309 | + | |
| 310 | + | |
307 | 311 |
| |
308 | 312 |
| |
309 | 313 |
| |
|
0 commit comments
Comments
(0)