Re: pageinspect patch, for showing tuple data

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pageinspect patch, for showing tuple data
Дата
Msg-id CAB7nPqTwK-iO7X4nbUEjxd64Zd46gfkXgP1ceis9OKoXhZa2HA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pageinspect patch, for showing tuple data  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
On Tue, Sep 8, 2015 at 11:53 AM, Michael Paquier wrote:
> Honestly, heap_page_item_attrs and heap_page_item_detoast_attrs are way too
> similar to what heap_page_items does, leading to a code maze that is going
> to make future extensions more difficult, which is what lead to the
> refactoring your patch does.
> Hence, instead of all those complications, why not simply introducing two
> functions that take as input the tuple data and the OID of the relation,
> returning those bytea arrays? It seems to be that this would be a more handy
> interface, and as this is for educational purposes I guess that the addition
> of the overhead induced by the extra function call would be acceptable.

Actually not two functions, but just one, with an extra flag to be
able to enforce detoasting on the field values where this can be done.
-- 
Michael



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: pageinspect patch, for showing tuple data
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Should TIDs be typbyval = FLOAT8PASSBYVAL to speed up CREATE INDEX CONCURRENTLY?