aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/ascii.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2017-08-05 14:32:01 -0700
committerAndres Freund <andres@anarazel.de>2017-08-05 14:56:40 -0700
commit23a2b818f50ff9e1beb73c31cd902a2140476c30 (patch)
tree4f67b41edcbf017762752a28832987d620bda479 /src/backend/utils/adt/ascii.c
parent8d05db3d8e0c507d2e1fead4acceed73565e3ccc (diff)
downloadpostgresql-23a2b818f50ff9e1beb73c31cd902a2140476c30.tar.gz
postgresql-23a2b818f50ff9e1beb73c31cd902a2140476c30.zip
Fix issues with wide tuples being updated and REPLICA IDENTITY FULL.
When replica identity full is being used with a wide tuple (above 2^16 bytes after compression) it lead to errors and/or crashes during decoding because the length field used to store such tuples doesn't fit into the variable used to store the width in the WAL record. To fix, discontinue use of xl_heap_header_len.t_len when decoding the old tuple version, instead compute length of the old tuple by subtracting the new tuple's length from the record length. In newer version of postgres this issue is moot because the length is stored by the new WAL machinery, instead of a xl_heap_header_len struct. A separate commit will forward-patch the regression test. Reported-By: "anderson" Discussion: http://postgr.es/m/20170105144819.f6i5o64vfvy4bn5i@alap3.anarazel.de
Diffstat (limited to 'src/backend/utils/adt/ascii.c')
0 files changed, 0 insertions, 0 deletions