cache lookup failed dropping public schema with trgm index

Wyatt Alt <wyatt.alt@gmail.com>

From: Wyatt Alt <wyatt.alt@gmail.com>
To: pgsql-bugs@lists.postgresql.org
Date: 2023-08-21T18:40:15Z
Lists: pgsql-bugs
Hi,

This reproduces on 15.4 and 13.12:

create table foo(t text);
create extension pg_trgm;
create index on foo using gist(t gist_trgm_ops);
drop schema public cascade;

NOTICE:  drop cascades to 2 other objects
DETAIL:  drop cascades to table foo
drop cascades to extension pg_trgm
ERROR:  cache lookup failed for function 1195999
Time: 20.968 ms