summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/encode.c
diff options
context:
space:
mode:
authorMasahiko Sawada <msawada@postgresql.org>2025-10-06 14:02:01 -0700
committerMasahiko Sawada <msawada@postgresql.org>2025-10-06 14:02:01 -0700
commit771cfe22a0982f8716abfa253707e74fbbad873a (patch)
treec2988ab121b11426763bdc5a6d1ff24786b6f49e /src/backend/utils/adt/encode.c
parentec8719ccbfcd78c6b40b5f2b94f60769f3bd08aa (diff)
Avoid unnecessary GinFormTuple() calls for incompressible posting lists.HEADorigin/masterorigin/HEADmaster
Previously, we attempted to form a posting list tuple even when ginCompressPostingList() failed to compress the posting list due to its size. While there was no functional failure, it always wasted one GinFormTuple() call when item pointers didn't fit in a posting list tuple. This commit ensures that a GIN index tuple is formed only when all item 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.com
Diffstat (limited to 'src/backend/utils/adt/encode.c')
0 files changed, 0 insertions, 0 deletions