| From: | jian he <jian(dot)universality(at)gmail(dot)com> |
|---|---|
| To: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | enum_in cache lookup failed for type |
| Date: | 2026-06-22 08:28:26 |
| Message-ID: | CACJufxGTWyvqaQd=AvFsTw3VFjYjLuQ5ZUpy1-YMvKoLBCvZAg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi.
CREATE TYPE rainbow AS ENUM ('red', 'orange', 'yellow', 'green',
'blue', 'purple');
select enum_in('rec', -1);
ERROR: cache lookup failed for type 4294967295
With the attached patch:
ERROR: invalid input value for enum ???: "rec"
We could make this bulletproof by calling SearchSysCache1(ENUMOID) followed by
SearchSysCache2(ENUMTYPOIDNAME), but the overhead of making two calls probably
isn't worth it.
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-fix-enum_in-cache-lookup-failed-ERROR.patch | text/x-patch | 2.4 KB |
| From | Date | Subject | |
|---|---|---|---|
| Previous Message | shveta malik | 2026-06-22 08:26:19 | Re: Proposal: Conflict log history table for Logical Replication |