pgsql: Fix minor 9.4-only bug in logical decoding.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix minor 9.4-only bug in logical decoding.
Дата
Msg-id E1bfUBA-0006eR-J9@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix minor 9.4-only bug in logical decoding.

The 9.4 version of log_heap_update() stores the full length of the
old_key_tuple in xlhdr.t_len, rather than the length less
offsetof(HeapTupleHeaderData, t_bits) as is customary elsewhere.
DecodeUpdate() was expecting the usual definition, which caused it
to copy 23 bytes too much out of the WAL-file buffer.  Most of the
time that's harmless, although Valgrind on buildfarm member skink
has been complaining about it, and there was one actual SIGSEGV
on curculio that might have been caused by this.  The reconstructed
key tuple would also have an over-length t_len, though offhand
I do not see how that could cause any visible problem.

The problem seems to have disappeared in the 9.5 WAL format changes
(commit 2c03216d8), so we only need to fix 9.4.

Discussion: <11035.1469058247@sss.pgh.pa.us>

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/10ad15f48ab187d754d657892d2f65695a7adea6

Modified Files
--------------
src/backend/replication/logical/decode.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Change API of ShmemAlloc() so it throws error rather than return
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Suppress GCC 6 warning about self-comparison