Bug when changing datatype of primary key column

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug when changing datatype of primary key column
Date: 2012-08-11 10:53:32
Message-ID: 20120811105331.GA5981@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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/

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2012-08-11 15:02:09 Re: Bug when changing datatype of primary key column
Previous Message Daniel Farina 2012-08-11 09:13:03 Re: BUG #7486: Error Group by