Re: detoast datum into the given buffer as a optimization.

From: Nikita Malakhov <hukutoc(at)gmail(dot)com>
To: Andy Fan <zhihuifan1213(at)163(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, David Rowley <dgrowley(at)gmail(dot)com>, Tomas Vondra <tomas(at)vondra(dot)me>
Subject: Re: detoast datum into the given buffer as a optimization.
Date: 2024-10-29 12:19:18
Message-ID: CAN-LCVO3GZAKVTKNwwcezoc=9Lq=kU2via-BM3MXVdOq4tD9RQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Andy,

For EXPANDED attributes va_rawsize is the size of the compressed attribute,
not original size.
You can check toast_save_datum for that.

This thread looks like the second take of the shared detoast datum patch.
Have you checked
my proposals in that thread?

--
Regards,
Nikita Malakhov
Postgres Professional
The Russian Postgres Company
https://postgrespro.ru/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Aleksander Alekseev 2024-10-29 12:23:15 Re: [PATCH] Rename trim_array() for consistency with the rest of array_* functions
Previous Message Aleksander Alekseev 2024-10-29 12:14:42 Re: general purpose array_sort