aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2018-11-27 10:07:03 -0800
committerAndres Freund <andres@anarazel.de>2018-11-27 10:07:03 -0800
commitb238527664ec6f6c9d00dba4cc2f3dab1c8b8b04 (patch)
tree03df0a6229aadc8a458ef673eec64ddd1ee1e64b /contrib/postgres_fdw/postgres_fdw.c
parentf17889b2214194d7bd33900509bf08959d5a7efa (diff)
downloadpostgresql-b238527664ec6f6c9d00dba4cc2f3dab1c8b8b04.tar.gz
postgresql-b238527664ec6f6c9d00dba4cc2f3dab1c8b8b04.zip
Fix jit compilation bug on wide tables.
The function generated to perform JIT compiled tuple deforming failed when HeapTupleHeader's t_hoff was bigger than a signed int8. I'd failed to realize that LLVM's getelementptr would treat an int8 index argument as signed, rather than unsigned. That means that a hoff larger than 127 would result in a negative offset being applied. Fix that by widening the index to 32bit. Add a testcase with a wide table. Don't drop it, as it seems useful to verify other tools deal properly with wide tables. Thanks to Justin Pryzby for both reporting a bug and then reducing it to a reproducible testcase! Reported-By: Justin Pryzby Author: Andres Freund Discussion: https://postgr.es/m/20181115223959.GB10913@telsasoft.com Backpatch: 11, just as jit compilation was
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions