Skip site navigation (1) Skip section navigation (2)

Re: XX000: enum value 117721 not found in cache for enum enumcrash

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Andres Freund <andres(at)2ndquadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: XX000: enum value 117721 not found in cache for enum enumcrash
Date: 2012-07-01 19:59:08
Message-ID: 27898.1341172748@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> On Sat, Jun 30, 2012 at 5:51 AM, Andres Freund <andres(at)2ndquadrant(dot)com> wrote:
>> This is not surprising. psql 2's backend finds rows in the index with enum
>> values that are not visible in its mvcc snapshot.

> I think the problem is that load_enum_cache_data() uses
> GetTransactionSnapshot() rather than GetLatestSnapshot().

That would only make the race condition window smaller (ie, hard
to reproduce manually like this, but not gone).

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2012-07-01 20:18:48
Subject: Re: XX000: enum value 117721 not found in cache for enum enumcrash
Previous:From: Alex HunsakerDate: 2012-07-01 19:20:58
Subject: Re: Support for array_remove and array_replace functions

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group