Re: BUG #18567: ERROR: cache lookup failed for attribute 1 of relation 74580

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jiangdian_m(at)163(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18567: ERROR: cache lookup failed for attribute 1 of relation 74580
Date: 2024-08-05 13:49:11
Message-ID: 1063126.1722865751@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> [ pg_get_indexdef can fail on a concurrently-dropped index ]

I'm not terribly concerned about this. In any case, the only
fix I can think of is for pg_get_indexdef to take a lock on the
index, which seems like a cure considerably worse than the
disease.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2024-08-06 06:23:43 BUG #18568: BUG: Result wrong when do group by on partition table!
Previous Message PG Bug reporting form 2024-08-05 13:25:27 BUG #18567: ERROR: cache lookup failed for attribute 1 of relation 74580