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
1a8d4c92
Commit
1a8d4c92
authored
Jan 07, 2010
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename new vacuumdb option to --analyze-only from --only-analyze.
parent
901be0fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
doc/src/sgml/ref/vacuumdb.sgml
doc/src/sgml/ref/vacuumdb.sgml
+5
-5
src/bin/scripts/vacuumdb.c
src/bin/scripts/vacuumdb.c
+15
-15
No files found.
doc/src/sgml/ref/vacuumdb.sgml
View file @
1a8d4c92
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/vacuumdb.sgml,v 1.4
7 2010/01/06 05:31:13 itagaki
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/vacuumdb.sgml,v 1.4
8 2010/01/07 12:38:55 momjian
Exp $
PostgreSQL documentation
-->
...
...
@@ -28,7 +28,7 @@ PostgreSQL documentation
<group><arg>--freeze</arg><arg>-F</arg></group>
<group><arg>--verbose</arg><arg>-v</arg></group>
<group><arg>--analyze</arg><arg>-z</arg></group>
<group><arg>--
only-analyze
</arg><arg>-o</arg></group>
<group><arg>--
analyze-only
</arg><arg>-o</arg></group>
<arg>--table | -t <replaceable>table</replaceable>
<arg>( <replaceable class="parameter">column</replaceable> [,...] )</arg>
</arg>
...
...
@@ -42,7 +42,7 @@ PostgreSQL documentation
<group><arg>--freeze</arg><arg>-F</arg></group>
<group><arg>--verbose</arg><arg>-v</arg></group>
<group><arg>--analyze</arg><arg>-z</arg></group>
<group><arg>--
only-analyze
</arg><arg>-o</arg></group>
<group><arg>--
analyze-only
</arg><arg>-o</arg></group>
</cmdsynopsis>
</refsynopsisdiv>
...
...
@@ -143,7 +143,7 @@ PostgreSQL documentation
<varlistentry>
<term><option>-o</option></term>
<term><option>--
only-analyze
</option></term>
<term><option>--
analyze-only
</option></term>
<listitem>
<para>
Only calculate statistics for use by the optimizer (no vacuum).
...
...
@@ -168,7 +168,7 @@ PostgreSQL documentation
<para>
Clean or analyze <replaceable class="parameter">table</replaceable> only.
Column names can be specified only in conjunction with
the <option>--analyze</option> or <option>--
only-analyze
</option> options.
the <option>--analyze</option> or <option>--
analyze-only
</option> options.
</para>
<tip>
<para>
...
...
src/bin/scripts/vacuumdb.c
View file @
1a8d4c92
...
...
@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.3
1 2010/01/06 16:04:0
5 momjian Exp $
* $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.3
2 2010/01/07 12:38:5
5 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -15,12 +15,12 @@
static
void
vacuum_one_database
(
const
char
*
dbname
,
bool
full
,
bool
inplace
,
bool
verbose
,
bool
and_analyze
,
bool
only_analyze
,
bool
freeze
,
bool
and_analyze
,
bool
analyze_only
,
bool
freeze
,
const
char
*
table
,
const
char
*
host
,
const
char
*
port
,
const
char
*
username
,
enum
trivalue
prompt_password
,
const
char
*
progname
,
bool
echo
);
static
void
vacuum_all_databases
(
bool
full
,
bool
inplace
,
bool
verbose
,
bool
and_analyze
,
bool
only_analyze
,
bool
freeze
,
bool
analyze_only
,
bool
freeze
,
const
char
*
host
,
const
char
*
port
,
const
char
*
username
,
enum
trivalue
prompt_password
,
const
char
*
progname
,
bool
echo
,
bool
quiet
);
...
...
@@ -41,7 +41,7 @@ main(int argc, char *argv[])
{
"quiet"
,
no_argument
,
NULL
,
'q'
},
{
"dbname"
,
required_argument
,
NULL
,
'd'
},
{
"analyze"
,
no_argument
,
NULL
,
'z'
},
{
"
only-analyze
"
,
no_argument
,
NULL
,
'o'
},
{
"
analyze-only
"
,
no_argument
,
NULL
,
'o'
},
{
"freeze"
,
no_argument
,
NULL
,
'F'
},
{
"all"
,
no_argument
,
NULL
,
'a'
},
{
"table"
,
required_argument
,
NULL
,
't'
},
...
...
@@ -63,7 +63,7 @@ main(int argc, char *argv[])
bool
echo
=
false
;
bool
quiet
=
false
;
bool
and_analyze
=
false
;
bool
only_analyze
=
false
;
bool
analyze_only
=
false
;
bool
freeze
=
false
;
bool
alldb
=
false
;
char
*
table
=
NULL
;
...
...
@@ -108,7 +108,7 @@ main(int argc, char *argv[])
and_analyze
=
true
;
break
;
case
'o'
:
only_analyze
=
true
;
analyze_only
=
true
;
break
;
case
'F'
:
freeze
=
true
;
...
...
@@ -155,7 +155,7 @@ main(int argc, char *argv[])
exit
(
1
);
}
if
(
only_analyze
)
if
(
analyze_only
)
{
if
(
full
)
{
...
...
@@ -169,7 +169,7 @@ main(int argc, char *argv[])
progname
);
exit
(
1
);
}
/* allow 'and_analyze' with '
only_analyze
' */
/* allow 'and_analyze' with '
analyze_only
' */
}
setup_cancel_handler
();
...
...
@@ -189,7 +189,7 @@ main(int argc, char *argv[])
exit
(
1
);
}
vacuum_all_databases
(
full
,
inplace
,
verbose
,
and_analyze
,
only_analyze
,
freeze
,
vacuum_all_databases
(
full
,
inplace
,
verbose
,
and_analyze
,
analyze_only
,
freeze
,
host
,
port
,
username
,
prompt_password
,
progname
,
echo
,
quiet
);
}
...
...
@@ -205,7 +205,7 @@ main(int argc, char *argv[])
dbname
=
get_user_name
(
progname
);
}
vacuum_one_database
(
dbname
,
full
,
inplace
,
verbose
,
and_analyze
,
only_analyze
,
vacuum_one_database
(
dbname
,
full
,
inplace
,
verbose
,
and_analyze
,
analyze_only
,
freeze
,
table
,
host
,
port
,
username
,
prompt_password
,
progname
,
echo
);
...
...
@@ -217,7 +217,7 @@ main(int argc, char *argv[])
static
void
vacuum_one_database
(
const
char
*
dbname
,
bool
full
,
bool
inplace
,
bool
verbose
,
bool
and_analyze
,
bool
only_analyze
,
bool
freeze
,
const
char
*
table
,
bool
analyze_only
,
bool
freeze
,
const
char
*
table
,
const
char
*
host
,
const
char
*
port
,
const
char
*
username
,
enum
trivalue
prompt_password
,
const
char
*
progname
,
bool
echo
)
...
...
@@ -230,7 +230,7 @@ vacuum_one_database(const char *dbname, bool full, bool inplace, bool verbose, b
conn
=
connectDatabase
(
dbname
,
host
,
port
,
username
,
prompt_password
,
progname
);
if
(
only_analyze
)
if
(
analyze_only
)
{
appendPQExpBuffer
(
&
sql
,
"ANALYZE"
);
if
(
verbose
)
...
...
@@ -306,7 +306,7 @@ vacuum_one_database(const char *dbname, bool full, bool inplace, bool verbose, b
static
void
vacuum_all_databases
(
bool
full
,
bool
inplace
,
bool
verbose
,
bool
and_analyze
,
bool
only_analyze
,
vacuum_all_databases
(
bool
full
,
bool
inplace
,
bool
verbose
,
bool
and_analyze
,
bool
analyze_only
,
bool
freeze
,
const
char
*
host
,
const
char
*
port
,
const
char
*
username
,
enum
trivalue
prompt_password
,
const
char
*
progname
,
bool
echo
,
bool
quiet
)
...
...
@@ -329,7 +329,7 @@ vacuum_all_databases(bool full, bool inplace, bool verbose, bool and_analyze, bo
fflush
(
stdout
);
}
vacuum_one_database
(
dbname
,
full
,
inplace
,
verbose
,
and_analyze
,
only_analyze
,
vacuum_one_database
(
dbname
,
full
,
inplace
,
verbose
,
and_analyze
,
analyze_only
,
freeze
,
NULL
,
host
,
port
,
username
,
prompt_password
,
progname
,
echo
);
}
...
...
@@ -351,7 +351,7 @@ help(const char *progname)
printf
(
_
(
" -f, --full do full vacuuming
\n
"
));
printf
(
_
(
" -F, --freeze freeze row transaction information
\n
"
));
printf
(
_
(
" -i, --inplace do full inplace vacuuming
\n
"
));
printf
(
_
(
" -o, --
only-analyze
only update optimizer hints
\n
"
));
printf
(
_
(
" -o, --
analyze-only
only update optimizer hints
\n
"
));
printf
(
_
(
" -q, --quiet don't write any messages
\n
"
));
printf
(
_
(
" -t, --table='TABLE[(COLUMNS)]' vacuum specific table only
\n
"
));
printf
(
_
(
" -v, --verbose write a lot of output
\n
"
));
...
...
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