Re: lazy detoasting

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: lazy detoasting
Дата
Msg-id 23711.1522559987@sss.pgh.pa.us
обсуждение исходный текст
Ответ на lazy detoasting  (Chapman Flack <chap@anastigmatix.net>)
Ответы Re: lazy detoasting  (Chapman Flack <chap@anastigmatix.net>)
Список pgsql-hackers
Chapman Flack <chap@anastigmatix.net> writes:
> If I copy an out-of-line, on-disk TOAST pointer into a memory context
> with transaction lifetime, with an eye to detoasting it later in the
> same transaction, are there circumstances where it wouldn't work?

Should be safe *as long as you hold onto a snapshot that can see the
toast value's parent row*.  Otherwise, it's not.

For a counterexample, see the changes we had to make to avoid depending
on out-of-line toast values in the catcaches, commit 08e261cbc.

            regards, tom lane


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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: [HACKERS] why not parallel seq scan for slow functions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS][PATCH] adding simple sock check for windows