summaryrefslogtreecommitdiff
path: root/src/backend/access/spgist/spgxlog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-01-02 16:24:50 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2016-01-02 16:25:11 -0500
commit5c0d6230f54c97c3fa5cf9a7cc286c35ebaad766 (patch)
tree3b7c167cf20467624422cc32ff3d3dc0eadd95ff /src/backend/access/spgist/spgxlog.c
parentc6ab17829284abb68d29ab75400eef9957a4f36f (diff)
Fix overly-strict assertions in spgtextproc.c.
spg_text_inner_consistent is capable of reconstructing an empty string to pass down to the next index level; this happens if we have an empty string coming in, no prefix, and a dummy node label. (In practice, what is needed to trigger that is insertion of a whole bunch of empty-string values.) Then, we will arrive at the next level with in->level == 0 and a non-NULL (but zero length) in->reconstructedValue, which is valid but the Assert tests weren't expecting it. Per report from Andreas Seltenreich. This has no impact in non-Assert builds, so should not be a problem in production, but back-patch to all affected branches anyway. In passing, remove a couple of useless variable initializations and shorten the code by not duplicating DatumGetPointer() calls.
Diffstat (limited to 'src/backend/access/spgist/spgxlog.c')
0 files changed, 0 insertions, 0 deletions