mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
Rename command to reindexdb, for consistency.
This commit is contained in:
@ -149,7 +149,7 @@ pgcrypto -
|
|||||||
Cryptographic functions
|
Cryptographic functions
|
||||||
by Marko Kreen <marko@l-t.ee>
|
by Marko Kreen <marko@l-t.ee>
|
||||||
|
|
||||||
reindex -
|
reindexdb -
|
||||||
Reindexes a database
|
Reindexes a database
|
||||||
by Shaun Thomas <sthomas@townnews.com>
|
by Shaun Thomas <sthomas@townnews.com>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
reindex
|
reindexdb
|
||||||
|
|
||||||
Indexes are known to grow over time. Being as vacuum doesn't slow or
|
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
|
clean up after this growth, and there is no command to reindex all tables
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
|
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
|
||||||
# Package : reindexdb Version : $Revision: 1.3 $
|
# Package : reindexdb Version : $Revision: 1.1 $
|
||||||
# Date : 05/08/2002 Author : Shaun Thomas
|
# Date : 05/08/2002 Author : Shaun Thomas
|
||||||
# Req : psql, sh, perl, sed Type : Utility
|
# Req : psql, sh, perl, sed Type : Utility
|
||||||
#
|
#
|
||||||
@ -188,7 +188,7 @@ if [ "$index" ]; then
|
|||||||
|
|
||||||
# Ok, no index. Is there a specific table to reindex?
|
# Ok, no index. Is there a specific table to reindex?
|
||||||
elif [ "$table" ]; then
|
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,
|
# No specific table, no specific index, either we have a specific database,
|
||||||
# or were told to do all databases. Do it!
|
# or were told to do all databases. Do it!
|
||||||
@ -206,7 +206,7 @@ else
|
|||||||
# database that we may reindex.
|
# database that we may reindex.
|
||||||
tables=`$PSQL $PSQLOPT -q -t -A -d $db -c "$sql"`
|
tables=`$PSQL $PSQLOPT -q -t -A -d $db -c "$sql"`
|
||||||
for tab in $tables; do
|
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
|
||||||
|
|
||||||
done
|
done
|
@ -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">
|
<chapter id="maintenance">
|
||||||
@ -393,7 +393,7 @@ VACUUM
|
|||||||
<para>
|
<para>
|
||||||
As a solution, you can use the <command>REINDEX</> command
|
As a solution, you can use the <command>REINDEX</> command
|
||||||
periodically to discard pages used by deleted rows. There is also
|
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>
|
</para>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user