diff --git a/src/test/regress/expected/alter_table.out b/src/test/regress/expected/alter_table.out index a8f81624fb..787340ddb5 100644 --- a/src/test/regress/expected/alter_table.out +++ b/src/test/regress/expected/alter_table.out @@ -126,8 +126,8 @@ DROP TABLE tmp_new; DROP TABLE tmp_new2; -- ALTER TABLE ... RENAME on non-table relations -- renaming indexes (FIXME: this should probably test the index's functionality) -ALTER TABLE onek_unique1 RENAME TO tmp_onek_unique1; -ALTER TABLE tmp_onek_unique1 RENAME TO onek_unique1; +ALTER INDEX onek_unique1 RENAME TO tmp_onek_unique1; +ALTER INDEX tmp_onek_unique1 RENAME TO onek_unique1; -- renaming views CREATE VIEW tmp_view (unique1) AS SELECT unique1 FROM tenk1; ALTER TABLE tmp_view RENAME TO tmp_view_new; diff --git a/src/test/regress/sql/alter_table.sql b/src/test/regress/sql/alter_table.sql index 6077788583..6b94e14ec8 100644 --- a/src/test/regress/sql/alter_table.sql +++ b/src/test/regress/sql/alter_table.sql @@ -166,8 +166,8 @@ DROP TABLE tmp_new2; -- ALTER TABLE ... RENAME on non-table relations -- renaming indexes (FIXME: this should probably test the index's functionality) -ALTER TABLE onek_unique1 RENAME TO tmp_onek_unique1; -ALTER TABLE tmp_onek_unique1 RENAME TO onek_unique1; +ALTER INDEX onek_unique1 RENAME TO tmp_onek_unique1; +ALTER INDEX tmp_onek_unique1 RENAME TO onek_unique1; -- renaming views CREATE VIEW tmp_view (unique1) AS SELECT unique1 FROM tenk1; ALTER TABLE tmp_view RENAME TO tmp_view_new;