Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
a0361c46
Commit
a0361c46
authored
Jun 23, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename command to reindexdb, for consistency.
parent
a36711c3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
contrib/README
contrib/README
+1
-1
contrib/reindexdb/README
contrib/reindexdb/README
+1
-1
contrib/reindexdb/reindexdb
contrib/reindexdb/reindexdb
+3
-3
doc/src/sgml/maintenance.sgml
doc/src/sgml/maintenance.sgml
+2
-2
No files found.
contrib/README
View file @
a0361c46
...
...
@@ -149,7 +149,7 @@ pgcrypto -
Cryptographic functions
by Marko Kreen <marko@l-t.ee>
reindex -
reindex
db
-
Reindexes a database
by Shaun Thomas <sthomas@townnews.com>
...
...
contrib/reindex/README
→
contrib/reindex
db
/README
View file @
a0361c46
reindex
reindex
db
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
...
...
contrib/reindex
/reindex
→
contrib/reindex
db/reindexdb
View file @
a0361c46
#!/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
...
...
doc/src/sgml/maintenance.sgml
View file @
a0361c46
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/maintenance.sgml,v 1.1
6 2002/06/23 03:37:12
momjian Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/maintenance.sgml,v 1.1
7 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/reindex
db
</> which can reindex an entire database.
</para>
</sect1>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment