Hi, In addition to the previous message - for the toast_fetch_datum_slice the first (seems obvious) way is to detoast the whole value, save it to cache and get slices from it on demand. I have another one on my mind, but have to play with it first.
-- Regards, Nikita Malakhov Postgres Professional The Russian Postgres Company https://postgrespro.ru/