pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@2ndquadrant.com>
Cc: Bernhard Schrader <bernhard.schrader@innogames.de>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [ADMIN] Problems with enums after pg_upgrade
Date: Tue, 18 Dec 2012 14:46:21 -0500
Message-ID: <50D0C80D.90806@dunslane.net> (raw)
In-Reply-To: <12773.1355859273@sss.pgh.pa.us>
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>
	<20121218183916.GA7666@awork2.anarazel.de>
	<12773.1355859273@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>


On 12/18/2012 02:34 PM, Tom Lane wrote:
> Andres Freund <andres@2ndquadrant.com> writes:
>> On 2012-12-18 13:24:12 -0500, Tom Lane wrote:
>>> 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.
>> I already wondered whether it could be a problem caused by pg_upgrade
>> not ignoring invalid indexes until recently, but I don't really see how
>> it could cause an invalid oid to end up in the index.
> It seems like this might indicate a flaw in our scheme for preventing
> uncommitted enum values from getting into tables/indexes.  Hard to see
> what though.
>
> Bernhard, if you do identify a particular index as being the source of
> the failure, that would at least tell us for sure which enum type is
> at fault.  I don't suppose you would have any info about the history
> of that enum type in your database?  The fact that the OID is odd
> implies that it belonged to a value that was added by ALTER TYPE ADD
> VALUE, but what we'd want is some context around any past uses of
> that command, especially if they failed or were rolled back.
>
> 			


He's upgrading from 9.0, which didn't have enum extension at all, and 
where odd enums didn't mean anything special.

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



view thread (16+ messages)  latest in thread

Message-ID: <50D0C80D.90806@dunslane.net>
Permalink:  ../50D0C80D.90806@dunslane.net/
Also on:    postgresql.org/message-id/50D0C80D.90806@dunslane.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: andrew@dunslane.net, tgl@sss.pgh.pa.us, andres@2ndquadrant.com, bernhard.schrader@innogames.de, bruce@momjian.us, pgsql-hackers@postgresql.org
  Subject: Re: [ADMIN] Problems with enums after pg_upgrade
  In-Reply-To: <50D0C80D.90806@dunslane.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox