Re: ERROR: missing chunk number 0 for toast value

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: ERROR: missing chunk number 0 for toast value
Дата
Msg-id CA+TgmoYQpf8+YzMXSZVK=oqpVvEfbYJnhaaYx=T_an4Pe_25+Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: ERROR: missing chunk number 0 for toast value  (Jim Nasby <jim@nasby.net>)
Список pgsql-hackers
On Mon, Jan 6, 2014 at 8:02 PM, Jim Nasby <jim@nasby.net> wrote:
> If concurrent TRUNCATE isn't safe outside of this case then why do we allow
> it? IE: why doesn't TRUNCATE exclusive lock the relation?

It *does*.

The problem is that the *other* transaction that's reading the
relation can still retain a TOAST pointer after it no longer holds the
lock.  That's uncool.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: truncating pg_multixact/members
Следующее
От: Tom Lane
Дата:
Сообщение: Fixing bug #8228 ("set-valued function called in context that cannot accept a set")