Re: Size of TOAST pointer

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Size of TOAST pointer
Дата
Msg-id 13171.1437086998@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Size of TOAST pointer  (Vignesh Raghunathan <vignesh.pgsql@gmail.com>)
Список pgsql-hackers
Vignesh Raghunathan <vignesh.pgsql@gmail.com> writes:
> I was looking at the documentation for TOAST (
> http://www.postgresql.org/docs/devel/static/storage-toast.html) and it's
> specified that the toast pointer occupies 18 bytes. However, the struct
> representing the toast pointer is defined as follows
> typedef struct varatt_external

The data that actually ends up on disk is a varattrib_1b_e wrapping a
varatt_external, and that header is where the extra 2 bytes come from.
        regards, tom lane



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

Предыдущее
От: Vignesh Raghunathan
Дата:
Сообщение: Size of TOAST pointer
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Memory prefetching while sequentially fetching from SortTuple array, tuplestore