Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T09K6-0003uz-6g for pgsql-bugs@postgresql.org; Sat, 11 Aug 2012 10:53:38 +0000 Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T09K2-0004RM-6Q for pgsql-bugs@postgresql.org; Sat, 11 Aug 2012 10:53:37 +0000 Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by depesz.com with esmtpa (Exim 4.80) (envelope-from ) id 1T09K0-0001se-6F for pgsql-bugs@postgresql.org; Sat, 11 Aug 2012 12:53:32 +0200 Date: Sat, 11 Aug 2012 12:53:32 +0200 From: hubert depesz lubaczewski To: pgsql-bugs@postgresql.org Subject: Bug when changing datatype of primary key column Message-ID: <20120811105331.GA5981@depesz.com> Reply-To: depesz@depesz.com MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201208/57 X-Sequence-Number: 33781 tested on: 1. 9.1.3 2. 9.3devel (yesterdays head in git) steps to reproduce: $ create table z (i int4); CREATE TABLE $ create unique index q on z (i); CREATE INDEX $ alter table z add primary key using index q; ALTER TABLE $ alter table z alter column i type int8; ERROR: could not open relation with OID 16503 looks like some missing dependancy. Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it. http://depesz.com/