Re: ALTER TABLE TODO items - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: ALTER TABLE TODO items
Date
Msg-id 6EE64EF3AB31D5448D0007DD34EEB34101AE08@Herge.rcsinc.local
Whole thread Raw
In response to ALTER TABLE TODO items  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: ALTER TABLE TODO items
Re: ALTER TABLE TODO items
List pgsql-hackers
Two very minor points with the new alter table (not sure if they are
even bugs are have already been addressed).

1. alter table alter type on a clustered index seems to drop the cluster
(by design)?

2. alter table cluster on seems to give a strange error message of the
index name is really the name of a table.

Ex:
alter table test cluster on test;
returns:
ERROR:  cache lookup failed for index 19013

Merlin

Log:
test=# create table test (id int);
CREATE TABLE
test=# create index test_id_idx on test(id);
CREATE INDEX
test=# alter table test cluster on test;
ERROR:  cache lookup failed for index 19046
test=# alter table test cluster on test_id_idx;
ALTER TABLE
test=# \d test    Table "public.test"Column |  Type   | Modifiers
--------+---------+-----------id     | integer |
Indexes:   "test_id_idx" btree (id) CLUSTER


test=# alter table test alter id type bigint;
ALTER TABLE
test=# \d test    Table "public.test"Column |  Type  | Modifiers
--------+--------+-----------id     | bigint |
Indexes:   "test_id_idx" btree (id)


test=#


pgsql-hackers by date:

Previous
From: Darko Prenosil
Date:
Subject: Bug in pg_dump 7.4
Next
From: Rod Taylor
Date:
Subject: Re: Bug in pg_dump 7.4