diff --git a/contrib/README b/contrib/README index 32304cad21..32a6cd53e7 100644 --- a/contrib/README +++ b/contrib/README @@ -149,7 +149,7 @@ pgcrypto - Cryptographic functions by Marko Kreen -reindex - +reindexdb - Reindexes a database by Shaun Thomas diff --git a/contrib/reindex/README b/contrib/reindexdb/README similarity index 84% rename from contrib/reindex/README rename to contrib/reindexdb/README index b2a92a39f9..21e6ecd7dc 100644 --- a/contrib/reindex/README +++ b/contrib/reindexdb/README @@ -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 diff --git a/contrib/reindex/reindex b/contrib/reindexdb/reindexdb similarity index 97% rename from contrib/reindex/reindex rename to contrib/reindexdb/reindexdb index 463ec4ffcf..e9597e5fec 100644 --- a/contrib/reindex/reindex +++ b/contrib/reindexdb/reindexdb @@ -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 diff --git a/doc/src/sgml/maintenance.sgml b/doc/src/sgml/maintenance.sgml index c0855c0fe1..9793cd9350 100644 --- a/doc/src/sgml/maintenance.sgml +++ b/doc/src/sgml/maintenance.sgml @@ -1,5 +1,5 @@ @@ -393,7 +393,7 @@ VACUUM As a solution, you can use the REINDEX command periodically to discard pages used by deleted rows. There is also - contrib/reindex which can reindex an entire database. + contrib/reindexdb which can reindex an entire database.