Re: Code cleanup for detoast a expanded datum. - Mailing list pgsql-hackers

From Michel Pelletier
Subject Re: Code cleanup for detoast a expanded datum.
Date
Msg-id CACxu=vKh-6mnsKr6y-eA_9hDYBVFDUQ9YyR=mxDd-dfirGQgBA@mail.gmail.com
Whole thread Raw
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: speedup ALTER TABLE ADD CHECK CONSTRAINT.
Next
From: Pavel Stehule
Date:
Subject: cannot to compile extension by meson on windows