Re: The suppress_redundant_updates_trigger() works incorrectly
От | Andrew Dunstan |
---|---|
Тема | Re: The suppress_redundant_updates_trigger() works incorrectly |
Дата | |
Msg-id | 49125073.5080800@dunslane.net обсуждение исходный текст |
Ответ на | Re: The suppress_redundant_updates_trigger() works incorrectly (KaiGai Kohei <kaigai@ak.jp.nec.com>) |
Ответы |
Re: The suppress_redundant_updates_trigger() works incorrectly
|
Список | pgsql-hackers |
KaiGai Kohei wrote: > *** 80,88 **** > HeapTupleHeaderGetNatts(oldheader)) && > ((newheader->t_infomask & ~HEAP_XACT_MASK) == > (oldheader->t_infomask & ~HEAP_XACT_MASK)) && > ! memcmp(((char *)newheader) + offsetof(HeapTupleHeaderData, t_bits), > ! ((char *)oldheader) + offsetof(HeapTupleHeaderData, t_bits), > ! newtuple->t_len - offsetof(HeapTupleHeaderData, t_bits)) == 0) > { > /* ... then suppress the update */ > rettuple = NULL; > --- 86,94 ---- > HeapTupleHeaderGetNatts(oldheader)) && > ((newheader->t_infomask & ~HEAP_XACT_MASK) == > (oldheader->t_infomask & ~HEAP_XACT_MASK)) && > ! memcmp(((char *)newheader) + newheader->t_hoff, > ! ((char *)oldheader) + oldheader->t_hoff, > ! newtuple->t_len - newheader->t_hoff) == 0) > { > /* ... then suppress the update */ > rettuple = NULL; > Wouldn't this omit comparing the null bitmap? cheers andrew
В списке pgsql-hackers по дате отправления: