Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate()
От
Dilip Kumar
Тема
Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate()
Дата
Msg-id
CAFiTN-smGWa8zYVsQVm7qRdXsr7JD8sokcKdfBhyF1onRORGdw@mail.gmail.com
Ответ на
Список
Дерево обсуждения
[BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() "Drouvot, Bertrand" <bdrouvot@amazon.com>
Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() Amit Kapila <amit.kapila16@gmail.com>
Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() Tom Lane <tgl@sss.pgh.pa.us>
Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() Amit Kapila <amit.kapila16@gmail.com>
Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() Dilip Kumar <dilipbalaut@gmail.com>
Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() "Drouvot, Bertrand" <bdrouvot@amazon.com>
Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() Dilip Kumar <dilipbalaut@gmail.com>
Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() Amit Kapila <amit.kapila16@gmail.com>
Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() Dilip Kumar <dilipbalaut@gmail.com>
Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() Amit Kapila <amit.kapila16@gmail.com>
Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() Dilip Kumar <dilipbalaut@gmail.com>
Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() "Drouvot, Bertrand" <bdrouvot@amazon.com>
Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() Amit Kapila <amit.kapila16@gmail.com>
Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() "Drouvot, Bertrand" <bdrouvot@amazon.com>
Re: [UNVERIFIED SENDER] Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() "Drouvot, Bertrand" <bdrouvot@amazon.com>
Re: [UNVERIFIED SENDER] Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() Amit Kapila <amit.kapila16@gmail.com>
Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() "Drouvot, Bertrand" <bdrouvot@amazon.com>
Re: [BUG] Failed Assertion in ReorderBufferChangeMemoryUpdate() "Drouvot, Bertrand" <bdrouvot@amazon.com>
On Tue, Sep 7, 2021 at 11:10 AM Amit Kapila <amit.kapila16@gmail.com> wrote:
>> Isn't it better if we use option 2) at all places as then we won't
>> need any special check inside ReorderBufferChangeMemoryUpdate()?
>
>
> If we want to do this then be careful about REORDER_BUFFER_CHANGE_INTERNAL_TUPLECID change. Basically, ReorderBufferChangeMemoryUpdate() ignores this type of change whereas ReorderBufferChangeSize(), consider at least sizeof(ReorderBufferChange) bytes to this change. So if we compute the size using ReorderBufferChangeSize() outside of ReorderBufferChangeMemoryUpdate(), then total size will be different from what we have now. Logically, we should be ignoring/asserting REORDER_BUFFER_CHANGE_INTERNAL_TUPLECID in ReorderBufferChangeSize(), because ReorderBufferChangeMemoryUpdate() is the only caller for this function.
>
Why can't we simply ignore it in ReorderBufferChangeMemoryUpdate() as
we are doing now?
Yeah right, we can actually do that, it doesn't matter even if we are passing the size from outside.
В списке pgsql-hackers по дате отправления