diff --git a/doc/src/sgml/ref/alter_index.sgmlin b/doc/src/sgml/ref/alter_index.sgmlin index ca78c72bc..a995cc518 100644 --- a/doc/src/sgml/ref/alter_index.sgmlin +++ b/doc/src/sgml/ref/alter_index.sgmlin @@ -26,6 +26,10 @@ ALTER INDEX [ IF EXISTS ] index_name RENAME PARTITION partition_name TO new_partition_name; ALTER INDEX [ IF EXISTS ] index_name MOVE PARTITION index_partition_name TABLESPACE new_tablespace; +ALTER INDEX [ IF EXISTS ] index_name + INVISIBLE / VISIBLE +ALTER INDEX [ IF EXISTS ] index_name + DISABLE / ENABLE diff --git a/src/test/regress/expected/alter_index_disable.out b/src/test/regress/expected/alter_index_disable.out index f887df41e..c26175354 100644 --- a/src/test/regress/expected/alter_index_disable.out +++ b/src/test/regress/expected/alter_index_disable.out @@ -78,6 +78,31 @@ explain (costs off) select * from alter_index_disable where to_char(a) = '1'; Index Cond: (((int4out(a))::character varying)::text = '1'::text) (4 rows) +\h alter index +Command: ALTER INDEX +Description: change the definition of an index +Syntax: +ALTER INDEX [ IF EXISTS ] index_name + RENAME TO new_name; +ALTER INDEX [ IF EXISTS ] index_name + SET TABLESPACE tablespace_name; +ALTER INDEX [ IF EXISTS ] index_name + SET ( {storage_parameter = value} [, ... ] ); +ALTER INDEX [ IF EXISTS ] index_name + RESET ( storage_parameter [, ... ] ) ; +ALTER INDEX [ IF EXISTS ] index_name + [ MODIFY PARTITION partition_name ] UNUSABLE; +ALTER INDEX index_name + REBUILD [ PARTITION partition_name ]; +ALTER INDEX [ IF EXISTS ] index_name + RENAME PARTITION partition_name TO new_partition_name; +ALTER INDEX [ IF EXISTS ] index_name + MOVE PARTITION index_partition_name TABLESPACE new_tablespace; +ALTER INDEX [ IF EXISTS ] index_name + INVISIBLE / VISIBLE +ALTER INDEX [ IF EXISTS ] index_name + DISABLE / ENABLE + drop procedure insert_data; drop index func_idx_alter_index_disable; drop table alter_index_disable cascade; diff --git a/src/test/regress/sql/alter_index_disable.sql b/src/test/regress/sql/alter_index_disable.sql index 00fca3682..e914ac8d5 100644 --- a/src/test/regress/sql/alter_index_disable.sql +++ b/src/test/regress/sql/alter_index_disable.sql @@ -38,6 +38,8 @@ select * from alter_index_disable where a = 10003 and b = 10003; alter index func_idx_alter_index_disable enable; explain (costs off) select * from alter_index_disable where to_char(a) = '1'; +\h alter index + drop procedure insert_data; drop index func_idx_alter_index_disable; drop table alter_index_disable cascade; \ No newline at end of file