Re: Unexpected "cache lookup failed for collation 0" failure - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Unexpected "cache lookup failed for collation 0" failure
Date
Msg-id 19497.1573663852@sss.pgh.pa.us
Whole thread Raw
In response to Unexpected "cache lookup failed for collation 0" failure  (Manuel Rigger <rigger.manuel@gmail.com>)
Responses Re: Unexpected "cache lookup failed for collation 0" failure  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
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

No, that's never expected (except maybe in concurrent-drop scenarios).

> This looks like an internal error message to me.

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...

            regards, tom lane



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: REINDEX CONCURRENTLY unexpectedly fails
Next
From: Andres Freund
Date:
Subject: Re: BUG #16112: large, unexpected memory consumption