From: Hiroshi Inoue Date: Fri, 31 Mar 2000 08:16:33 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: REL7_0~257 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e854d3da54f22074e638dc126a298e064db1cb7a;p=postgresql *** empty log message *** --- diff --git a/doc/src/sgml/ref/reindex.sgml b/doc/src/sgml/ref/reindex.sgml new file mode 100644 index 0000000000..22bd5ed6a0 --- /dev/null +++ b/doc/src/sgml/ref/reindex.sgml @@ -0,0 +1,181 @@ + + + + + + REINDEX + + SQL - Language Statements + + + + REINDEX + + + Recover corrupted system indexes under standalone Postgres + + + + + 2000-03-30 + + +REINDEX { TABLE | DATABASE | INDEX } name [ FORCE ] + + + + + 2000-03-30 + + + Inputs + + + + + + TABLE + + + Recreate all indexes of a specfied table. + + + + + DATABASE + + + Recreate all system indexes of a specfied database. + + + + + INDEX + + + Recreate a specfied index. + + + + + name + + + The name of the specific table/database/index to be be reindexed. + + + + + FORCE + + + Recreate indexes forcedly. Without this keyword REINDEX does + nothing unless target indexes are invalidated. + + + + + + + + + + 2000-03-30 + + + Outputs + + + + + + +REINDEX + + + + Message returned if the table is successfully reindexed. + + + + + + + + + + + 2000-03-30 + + + Description + + + REINDEX is used to recover corrupted system indexes. + In order to run REINDEX command,Postmaster must be shutdown and + standalone Postgres should be started instead with options -O and + -P(an option to ignore system indexes). Note that we couldn't rely + on system indexes for the recovery of system indexes. + + + + + + Usage + + + Recreate the table mytable: + + + REINDEX TABLE mytable; + + + + + Some more examples: + + +REINDEX DATABASE my_database FORCE; +REINDEX INDEX my_index; + + + + + + + Compatibility + + + + + 2000-03-30 + + + SQL92 + + + There is no REINDEX in SQL92. + + + + + +