Re: Unexpected "cache lookup failed for collation 0" failure

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Unexpected "cache lookup failed for collation 0" failure
Дата
Msg-id 2906.1573678571@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Unexpected "cache lookup failed for collation 0" failure  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Unexpected "cache lookup failed for collation 0" failure  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-bugs
I wrote:
> Manuel Rigger <rigger.manuel@gmail.com> writes:
>> Is the error "cache lookup failed for collation 0" in this context expected?

>> CREATE TABLE t0(c0 CHAR(2) COLLATE "C", c1 CHAR(2) COLLATE "POSIX");
>> INSERT INTO t0 VALUES('', '');
>> SELECT * FROM t0 WHERE t0.c1 NOT IN (t0.c0); -- unexpected: cache
>> lookup failed for collation 0

> I get an assertion failure :-(, although the assertion is just
> complaining about the same thing, ie no-collation-assigned.
> Used to work before v12, too.  Looking...

Looks like a simple oversight --- when bpcharne() was made
collation-sensitive, it should have grown a check_collation_set()
call, but somehow that got left out.  Fixed.

            regards, tom lane



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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: BUG #16104: Invalid DSA Memory Alloc Request in Parallel Hash
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: BUG #16112: large, unexpected memory consumption