Fix copy-paste error in test_ginpostinglist The check for a mismatch on the second decoded item pointer was an exact copy of the first item pointer check, comparing orig_itemptrs[0] with decoded_itemptrs[0] instead of orig_itemptrs[1] with decoded_itemptrs[1]. The error message also reported (0, 1) as the expected value instead of (blk, off). As a result, any decoding error in the second item pointer (where the varbyte delta encoding is exercised) would go undetected.
This has been wrong since commit bde7493d1, so backpatch to all supported versions. Author: Jianghua Yang <[email protected]> Discussion: https://postgr.es/m/caazlfmsod8r7tzjrlzsmpktjloqjgawaam-pne1j8b_q2aq...@mail.gmail.com Backpatch-through: 14 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/d2a1aa77c25549bd0d285bdb29a89e29db4d30b2 Modified Files -------------- src/test/modules/test_ginpostinglist/test_ginpostinglist.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
