]> granicus.if.org Git - postgresql/commitdiff
Rename command to reindexdb, for consistency.
authorBruce Momjian <bruce@momjian.us>
Sun, 23 Jun 2002 03:51:55 +0000 (03:51 +0000)
committerBruce Momjian <bruce@momjian.us>
Sun, 23 Jun 2002 03:51:55 +0000 (03:51 +0000)
contrib/README
contrib/reindexdb/README [moved from contrib/reindex/README with 84% similarity]
contrib/reindexdb/reindexdb [moved from contrib/reindex/reindex with 97% similarity]
doc/src/sgml/maintenance.sgml

index 32304cad218d5c0d8265b1b721b0528a7b0b0f5b..32a6cd53e745a8059842b81a7d874eb2b9ee0c73 100644 (file)
@@ -149,7 +149,7 @@ pgcrypto -
        Cryptographic functions
        by Marko Kreen <marko@l-t.ee>
 
-reindex - 
+reindexdb - 
        Reindexes a database
        by Shaun Thomas <sthomas@townnews.com>
 
similarity index 84%
rename from contrib/reindex/README
rename to contrib/reindexdb/README
index b2a92a39f952cd3d1c79e6cb65c96daaf4aa8d59..21e6ecd7dc817526a28cb8b41aa1f672cd965acb 100644 (file)
@@ -1,5 +1,5 @@
 
-                                  reindex
+                                  reindexdb
 
 Indexes are known to grow over time.  Being as vacuum doesn't slow or
 clean up after this growth, and there is no command to reindex all tables
similarity index 97%
rename from contrib/reindex/reindex
rename to contrib/reindexdb/reindexdb
index 463ec4ffcf3de6717a59acdd7a9f6954c1a9a39b..e9597e5fecbca11ee5e17b08c4c33058bdf7af19 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
-# Package : reindexdb                 Version : $Revision: 1.3 $
+# Package : reindexdb                 Version : $Revision: 1.1 $
 # Date    : 05/08/2002                Author  : Shaun Thomas
 # Req     : psql, sh, perl, sed         Type  : Utility
 #
@@ -188,7 +188,7 @@ if [ "$index" ]; then
 
 # Ok, no index.  Is there a specific table to reindex?
 elif [ "$table" ]; then
-  $PSQL $PSQLOPT $ECHOOPT -c "REINDEX TABLE \"$table\"" -d $dbname
+    $PSQL $PSQLOPT $ECHOOPT -c "REINDEX TABLE \"$table\"" -d $dbname
 
 # No specific table, no specific index, either we have a specific database,
 # or were told to do all databases.  Do it!
@@ -206,7 +206,7 @@ else
     # database that we may reindex.
     tables=`$PSQL $PSQLOPT -q -t -A -d $db -c "$sql"`
     for tab in $tables; do
-      $PSQL $PSQLOPT $ECHOOPT -c "REINDEX TABLE \"$tab\"" -d $db
+        $PSQL $PSQLOPT $ECHOOPT -c "REINDEX TABLE \"$tab\"" -d $db
     done
 
   done
index c0855c0fe16c1554074afc83749020410ae6744b..9793cd93503333d2c2778366f748be12b6eb36b8 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-$Header: /cvsroot/pgsql/doc/src/sgml/maintenance.sgml,v 1.16 2002/06/23 03:37:12 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/maintenance.sgml,v 1.17 2002/06/23 03:51:55 momjian Exp $
 -->
 
 <chapter id="maintenance">
@@ -393,7 +393,7 @@ VACUUM
   <para>
    As a solution, you can use the <command>REINDEX</> command
    periodically to discard pages used by deleted rows. There is also
-   <filename>contrib/reindex</> which can reindex an entire database.
+   <filename>contrib/reindexdb</> which can reindex an entire database.
   </para>
  </sect1>