Re: Code cleanup for detoast a expanded datum.

Поиск
Список
Период
Сортировка
От Michel Pelletier
Тема Re: Code cleanup for detoast a expanded datum.
Дата
Msg-id CACxu=vKh-6mnsKr6y-eA_9hDYBVFDUQ9YyR=mxDd-dfirGQgBA@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
On Mon, Nov 18, 2024 at 7:42 PM Andy Fan <zhihuifan1213@163.com> wrote:
Andy Fan <zhihuifan1213@163.com> writes:

>
> make check-world passed after applying this patch.

v2 changes the places of Assert, which is missed in v1 by mistakes.

I'm not an expert in this end of the code but it looks correct to me, my only comment would be maybe add a new function detoast_external_expanded_attr that is called from both detoast_external_attr and detoast_attr so the EOHP stuff stays hidden behind a function.

If that's too much API commitment then I'm fine with the way it looks inlining the EOHP code as you have to avoid the duplicate checks.

-Michel

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