[BUGS] [BUG] pg9.4.10 Logical decoding did not get the correct oldtuplelen

Поиск
Список
Период
Сортировка
От anderson
Тема [BUGS] [BUG] pg9.4.10 Logical decoding did not get the correct oldtuplelen
Дата
Msg-id tencent_5B4204547B0BB8C05F9B1D99@qq.com
обсуждение исходный текст
Ответы Re: [BUGS] [BUG] pg9.4.10 Logical decoding did not get the correct oldtuplelen  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-bugs
hi team:

I found a postgresql 9.4.10 Logical decoding problem
heapam.c:6976 xlog store incorrect oldtuplen when tuplelen is greater than the value field of uint16.

a uint32 variable is assigned to uint16

The structure that holds the oldkey length is:
typedef struct xl_heap_header_len
{
uint16 t_len;
xl_heap_header header;
} xl_heap_header_len;

The problem will lead to logic decoding failure when oldtuplene > 65535 and relreplident = FULL.
The table that triggers the problem is usually relreplident = FULL.
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff} span.s1 {font-variant-ligatures: no-common-ligatures}

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: [BUGS] pg_receivexlog creating holes in WAL (HEAD only)
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [BUGS] [BUG] pg9.4.10 Logical decoding did not get the correct oldtuplelen