Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tl22p-0001RE-IM for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Dec 2012 18:37:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tl22o-0001kL-IC for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Dec 2012 18:37:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tl22n-0001k3-98 for pgsql-hackers@postgresql.org; Tue, 18 Dec 2012 18:37:33 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tl22k-0000GA-UD for pgsql-hackers@postgresql.org; Tue, 18 Dec 2012 18:37:32 +0000 X-Originating-IP: 217.70.178.141 Received: from mfilter13-d.gandi.net (mfilter13-d.gandi.net [217.70.178.141]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id 63720172099; Tue, 18 Dec 2012 19:37:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter13-d.gandi.net Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter13-d.gandi.net (mfilter13-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id Uo4NPXUsWhhp; Tue, 18 Dec 2012 19:37:17 +0100 (CET) X-Originating-IP: 98.27.58.255 Received: from [192.168.10.146] (cpe-098-027-058-255.nc.res.rr.com [98.27.58.255]) (Authenticated sender: adsend@dunslane.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 1C4651720A5; Tue, 18 Dec 2012 19:37:16 +0100 (CET) Message-ID: <50D0B7DB.101@dunslane.net> Date: Tue, 18 Dec 2012 13:37:15 -0500 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: Tom Lane CC: Bernhard Schrader , Bruce Momjian , PostgreSQL-development Subject: Re: [ADMIN] Problems with enums after pg_upgrade References: <50CEFE95.9040301@innogames.de> <20121218014137.GB29143@momjian.us> <50D02D13.3010004@innogames.de> <50D0914E.3040508@dunslane.net> <20121218162256.GA24700@momjian.us> <50D0B0AD.9010905@innogames.de> <11487.1355855052@sss.pgh.pa.us> In-Reply-To: <11487.1355855052@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 12/18/2012 01:24 PM, Tom Lane wrote: > Bernhard Schrader writes: >> Beside of that, we tested a little bit more with the failing query: >> The statement which is causing the error is a big UPDATE-statement with >> FROM. After some testing we figured out that the subselect in the >> FROM-clause is working fine. And if we simplify the UPDATE-statement >> it's also working. We're able to show the data and we're able to do >> simple updates on the table. But the two things combined are not >> working. > Does the table being updated have any indexes on enum columns? I'm > suspicious that the bogus OID is in an index page somewhere, and not > in the table at all. > > If that is the answer, then reindexing said index would get rid of > the problem (as well as all evidence that would help us find out how > it happened ...) > > Unless they can make a physical backup of the datadir first. cheers andrew -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers