Re: Assertion on create index concurrently

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Assertion on create index concurrently
Дата
Msg-id YNfV9WfPh7eduCfM@paquier.xyz
обсуждение исходный текст
Ответ на Assertion on create index concurrently  (Andrey Lepikhov <a.lepikhov@postgrespro.ru>)
Ответы Re: Assertion on create index concurrently  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Sat, Jun 26, 2021 at 09:48:45PM +0300, Andrey Lepikhov wrote:
> I found one annoying assertion in the CREATE INDEX CONCURRENTLY operation.
> It will happen if you add into WHERE part of CREATE INDEX CONCURRENTLY some
> function that will make transactional update (see an example in the attached
> patch).
>
> It looks like a hack, but it lead to assertion and restart of the instance,
> that isn't good.
> I suggest to perform error, not assertion in this case (see the patch).
>
> This problem affects PG 9.6 - 13. The master branch was fixed 9 months ago
> by commit 83158f7, that made this operation transactional, but still.

This looks like a good argument for back-patching 83158f7 all the way
down, as 813fb03 exists since 9.4.  Any thoughts from others?
--
Michael

Вложения

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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: BUG #17066: Cache lookup failed when null (iso-8859-1) is passed as anycompatiblemultirange
Следующее
От: Sudheer H R
Дата:
Сообщение: Socket (fd) to posters server getting closed. (libpq)