From: | Andy Fan <zhihuifan1213(at)163(dot)com> |
---|---|
To: | Michel Pelletier <pelletier(dot)michel(at)gmail(dot)com> |
Cc: | Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Code cleanup for detoast a expanded datum. |
Date: | 2024-12-02 01:03:28 |
Message-ID: | 87y10yvqu7.fsf@163.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Michel Pelletier <pelletier(dot)michel(at)gmail(dot)com> writes:
> On Mon, Nov 18, 2024 at 7:42 PM Andy Fan <zhihuifan1213(at)163(dot)com> wrote:
>
> Andy Fan <zhihuifan1213(at)163(dot)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.
Thanks for the double check. Your suggestion looks good to me. v3 is
attached for this.
Just that I'm not sure about the function name. To be
consistent with other functions in this area, e.g. toast_fetch_datum,
totast_decompressed_datum, it looks like this function would be
toast_EOH/expaned_attr. Currently I'm using toast_EOH_attr. I'm open for
other names.
I find detoast_attr_slice has the similar issues as detoast_attr, so
included in v3 as well.
--
Best Regards
Andy Fan
Attachment | Content-Type | Size |
---|---|---|
v3-0001-Using-more-specific-code-when-detoasting-an-expan.patch | text/x-diff | 3.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2024-12-02 01:34:57 | Re: CREATE SCHEMA ... CREATE DOMAIN support |
Previous Message | Pavel Stehule | 2024-12-01 22:32:44 | Re: cannot to compile extension by meson on windows |