Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tksnq-0001H3-5d for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Dec 2012 08:45:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tksnp-00018H-7t for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Dec 2012 08:45:29 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tksnn-00018B-Jh for pgsql-hackers@postgreSQL.org; Tue, 18 Dec 2012 08:45:27 +0000 Received: from ch1ehsobe006.messaging.microsoft.com ([216.32.181.186] helo=ch1outboundpool.messaging.microsoft.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tksnj-0006XK-BJ for pgsql-hackers@postgreSQL.org; Tue, 18 Dec 2012 08:45:26 +0000 Received: from mail136-ch1-R.bigfish.com (10.43.68.226) by CH1EHSOBE010.bigfish.com (10.43.70.60) with Microsoft SMTP Server id 14.1.225.23; Tue, 18 Dec 2012 08:45:21 +0000 Received: from mail136-ch1 (localhost [127.0.0.1]) by mail136-ch1-R.bigfish.com (Postfix) with ESMTP id 7F86BE02CD; Tue, 18 Dec 2012 08:45:21 +0000 (UTC) X-Forefront-Antispam-Report: CIP:157.56.252.5; KIP:(null); UIP:(null); IPV:NLI; H:DB3PRD0310HT004.eurprd03.prod.outlook.com; RD:none; EFVD:NLI X-SpamScore: -4 X-BigFish: PS-4(zzbb2dI98dI9371Ic89bh1432Izz1d74h1de0h1d18h1202h1e76h1d1ah1d2ahzz1954cbh17326ah8275bhz2fh2a8h668h839h946hd25he5bhf0ah1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h1765h1155h) Received-SPF: pass (mail136-ch1: domain of innogames.de designates 157.56.252.5 as permitted sender) client-ip=157.56.252.5; envelope-from=bernhrad.schrader@innogames.de; helo=DB3PRD0310HT004.eurprd03.prod.outlook.com ; .outlook.com ; Received: from mail136-ch1 (localhost.localdomain [127.0.0.1]) by mail136-ch1 (MessageSwitch) id 1355820314306512_22822; Tue, 18 Dec 2012 08:45:14 +0000 (UTC) Received: from CH1EHSMHS012.bigfish.com (snatpool2.int.messaging.microsoft.com [10.43.68.239]) by mail136-ch1.bigfish.com (Postfix) with ESMTP id 429E53A00CC; Tue, 18 Dec 2012 08:45:14 +0000 (UTC) Received: from DB3PRD0310HT004.eurprd03.prod.outlook.com (157.56.252.5) by CH1EHSMHS012.bigfish.com (10.43.70.12) with Microsoft SMTP Server (TLS) id 14.1.225.23; Tue, 18 Dec 2012 08:45:14 +0000 Received: from [172.16.22.35] (212.48.107.10) by pod51013.outlook.com (10.255.44.39) with Microsoft SMTP Server (TLS) id 14.16.245.2; Tue, 18 Dec 2012 08:45:10 +0000 Message-ID: <50D02D13.3010004@innogames.de> Date: Tue, 18 Dec 2012 09:45:07 +0100 From: Bernhard Schrader User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Bruce Momjian CC: PostgreSQL-development Subject: Re: [ADMIN] Problems with enums after pg_upgrade References: <50CEFE95.9040301@innogames.de> <20121218014137.GB29143@momjian.us> In-Reply-To: <20121218014137.GB29143@momjian.us> Content-Type: text/plain; charset="windows-1252"; format=flowed X-Originating-IP: [212.48.107.10] Content-Transfer-Encoding: quoted-printable X-OriginatorOrg: innogames.de 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 02:41 AM, Bruce Momjian wrote: > On Mon, Dec 17, 2012 at 12:14:29PM +0100, Bernhard Schrader wrote: >> Hello together, >> >> last thursday I upgraded one of our 9.0.6 postgresql servers to >> 9.2.2 with pg_upgrade. So far everything seemed to work but we now >> discover problems with the enum types. If we run one specific query >> it breaks all time with such an error message: >> >> ERROR: invalid internal value for enum: 520251 >> >> if this number should represent the enumtypid it is not existing >> anymore in pg_enum. >> >> How could i solve this problem? should we regenerate all enums? or >> what could we do? >> Hopefully anyone has a clue, google doesn't seem to be the ressource >> for this problem. > We seriously tested the enum code so I am pretty confused why this is > failing. If you do pg_dump --binary-upgrade --schema-only, do you see > that a number like this being defined just before the enum is added? > Hi Bruce, if i am dumping this db and grepping through the dump, i can't find the=20 number. As far as we can see, the enum that is affected has now the enumtypid 16728. is there a table which keeps the possible typecasts from enum to=20 text/text to enum etc.? if so, maybe the mapping in here is corrupt=20 since the upgrade. regards --=20 Bernhard Schrader System Administration InnoGames GmbH Harburger Schlo=DFstra=DFe 28 (Channel 4) - 21079 Hamburg - Germany Tel +49 40 7889335-53 Fax +49 40 7889335-22 Managing Directors: Hendrik Klindworth, Eike Klindworth, Michael Zillmer VAT-ID: DE264068907 Amtsgericht Hamburg, HRB 108973 http://www.innogames.com =96 bernhard.schrader@innogames.de --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers