Re: [BUGS] renaming index leaves database inconsistent - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [BUGS] renaming index leaves database inconsistent
Date
Msg-id 20791.944531953@sss.pgh.pa.us
Whole thread Raw
In response to renaming index leaves database inconsistent  (Richard Poole <rp@gxn.net>)
List pgsql-bugs
Richard Poole <rp@gxn.net> writes:
> rptest=> create table foo(i int);
> rptest=> create index foo_index on foo(i);
> rptest=> alter table foo_index rename to new_foo_index;
> ERROR:  TypeRename: type foo_index not defined

In current sources I get
    ERROR:  foo_index is an index relation
and no damage has been done.  Seems like it ought to be possible to
rename an index, however, so I'd say this is a stopgap not a solution.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Richard Poole
Date:
Subject: renaming index leaves database inconsistent
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] Too large tuples corrupting tables