Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
a0361c46
Commit
a0361c46
authored
22 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Rename command to reindexdb, for consistency.
parent
a36711c3
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
contrib/README
+1
-1
1 addition, 1 deletion
contrib/README
contrib/reindexdb/README
+1
-1
1 addition, 1 deletion
contrib/reindexdb/README
contrib/reindexdb/reindexdb
+3
-3
3 additions, 3 deletions
contrib/reindexdb/reindexdb
doc/src/sgml/maintenance.sgml
+2
-2
2 additions, 2 deletions
doc/src/sgml/maintenance.sgml
with
7 additions
and
7 deletions
contrib/README
+
1
−
1
View file @
a0361c46
...
@@ -149,7 +149,7 @@ pgcrypto -
...
@@ -149,7 +149,7 @@ pgcrypto -
Cryptographic functions
Cryptographic functions
by Marko Kreen <marko@l-t.ee>
by Marko Kreen <marko@l-t.ee>
reindex -
reindex
db
-
Reindexes a database
Reindexes a database
by Shaun Thomas <sthomas@townnews.com>
by Shaun Thomas <sthomas@townnews.com>
...
...
This diff is collapsed.
Click to expand it.
contrib/reindex/README
→
contrib/reindex
db
/README
+
1
−
1
View file @
a0361c46
reindex
reindex
db
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
...
...
This diff is collapsed.
Click to expand it.
contrib/reindex/reindex
→
contrib/reindex
db
/reindex
db
+
3
−
3
View file @
a0361c46
#!/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
...
@@ -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
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
doc/src/sgml/maintenance.sgml
+
2
−
2
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">
<chapter id="maintenance">
...
@@ -393,7 +393,7 @@ VACUUM
...
@@ -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/reindex
db
</> which can reindex an entire database.
</para>
</para>
</sect1>
</sect1>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment