Re: Another assert failure from no-palloc-in-critical-sections

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Another assert failure from no-palloc-in-critical-sections
Дата
Msg-id 53405726.90409@vmware.com
обсуждение исходный текст
Ответ на Another assert failure from no-palloc-in-critical-sections  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Another assert failure from no-palloc-in-critical-sections  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
On 04/05/2014 08:08 PM, Tom Lane wrote:
> I tried the test case given in
> http://www.postgresql.org/message-id/dafad644f268ce1503e1b8b682aae38a.squirrel@webmail.xs4all.nl
> on HEAD.  It asserted here:
>...
> #5  0x000000000046b92b in createPostingTree (index=0x7f1348ae31e0,
>      items=0x7f13343bb048, nitems=272428, buildStats=0x7fff1d835670)
>      at gindatapage.c:1739

Yep, that's a clear violation of the no-pallocs-in-critical-section 
rule. Thanks, fixed.

I'm surprised none of the existing regression tests caught that. 
Apparently none of them create a GIN index with enough duplicate keys 
that it would create a posting tree. I added one.

- Heikki



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: trgm regex index peculiarity
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: B-Tree support function number 3 (strxfrm() optimization)