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

Nikita Malakhov <hukutoc@gmail.com>

From: Nikita Malakhov <hukutoc@gmail.com>
To: Andy Fan <zhihuifan1213@163.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, David Rowley <dgrowley@gmail.com>, Tomas Vondra <tomas@vondra.me>
Date: 2024-10-29T12:19:18Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Avoid detoast in texteq/textne/byteaeq/byteane for unequal-length strings.

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/