Re: BUG #15565: truncate bug with tables which have temp tableinherited

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #15565: truncate bug with tables which have temp tableinherited
Дата
Msg-id 20181225080314.GF2334@paquier.xyz
обсуждение исходный текст
Ответ на Re: BUG #15565: truncate bug with tables which have temp table inherited  (David Rowley <david.rowley@2ndquadrant.com>)
Ответы Re: BUG #15565: truncate bug with tables which have temp tableinherited  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Список pgsql-bugs
On Tue, Dec 25, 2018 at 08:27:19PM +1300, David Rowley wrote:
> I glanced at this and was confused at where "newrelation" comes from
> and also the single parameter heap_close(). It does not look like it
> would compile.

Nope, it doesn't.  heap_close ought to not normally release the lock
either until the transaction has committed.  The patch clobbers
something that truncate_check_activity() already checks, which is not
elegant.  I am wondering as well if we could take this occasion for
having better isolation testing when it comes to inheritance trees
mixing relation persistency.  At least for the TRUNCATE case it would
be nice to have something.
--
Michael

Вложения

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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: BUG #15565: truncate bug with tables which have temp table inherited
Следующее
От: Amit Langote
Дата:
Сообщение: Re: BUG #15565: truncate bug with tables which have temp tableinherited