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
741ee9dc
Commit
741ee9dc
authored
Jun 20, 2018
by
Magnus Hagander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support long option for --pgdata in pg_verify_checksums
Author: Daniel Gustafsson <daniel@yesql.se>
parent
d73300a2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
doc/src/sgml/ref/pg_verify_checksums.sgml
doc/src/sgml/ref/pg_verify_checksums.sgml
+2
-1
src/bin/pg_verify_checksums/pg_verify_checksums.c
src/bin/pg_verify_checksums/pg_verify_checksums.c
+12
-6
No files found.
doc/src/sgml/ref/pg_verify_checksums.sgml
View file @
741ee9dc
...
...
@@ -23,7 +23,7 @@ PostgreSQL documentation
<cmdsynopsis>
<command>pg_verify_checksums</command>
<arg choice="opt"><replaceable class="parameter">option</replaceable></arg>
<arg choice="opt"><arg choice="opt"><option>-D</option></arg> <replaceable class="parameter">datadir</replaceable></arg>
<arg choice="opt"><arg choice="opt"><option>-D</option></arg>
<arg choice="opt"><option>--pgdata</option></arg>
<replaceable class="parameter">datadir</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>
...
...
@@ -45,6 +45,7 @@ PostgreSQL documentation
<varlistentry>
<term><option>-D <replaceable>directory</replaceable></option></term>
<term><option>--pgdata=<replaceable>directory</replaceable></option></term>
<listitem>
<para>
Specifies the directory where the database cluster is stored.
...
...
src/bin/pg_verify_checksums/pg_verify_checksums.c
View file @
741ee9dc
...
...
@@ -41,7 +41,7 @@ usage()
printf
(
_
(
"Usage:
\n
"
));
printf
(
_
(
" %s [OPTION] [DATADIR]
\n
"
),
progname
);
printf
(
_
(
"
\n
Options:
\n
"
));
printf
(
_
(
" [-D
] DATADIR
data directory
\n
"
));
printf
(
_
(
" [-D
, --pgdata=]DATADIR
data directory
\n
"
));
printf
(
_
(
" -r relfilenode check only relation with specified relfilenode
\n
"
));
printf
(
_
(
" -d debug output, listing all checked blocks
\n
"
));
printf
(
_
(
" -V, --version output version information, then exit
\n
"
));
...
...
@@ -205,8 +205,14 @@ scan_directory(char *basedir, char *subdir)
int
main
(
int
argc
,
char
*
argv
[])
{
static
struct
option
long_options
[]
=
{
{
"pgdata"
,
required_argument
,
NULL
,
'D'
},
{
NULL
,
0
,
NULL
,
0
}
};
char
*
DataDir
=
NULL
;
int
c
;
int
option_index
;
bool
crc_ok
;
set_pglocale_pgservice
(
argv
[
0
],
PG_TEXTDOMAIN
(
"pg_verify_checksums"
));
...
...
@@ -227,7 +233,7 @@ main(int argc, char *argv[])
}
}
while
((
c
=
getopt
(
argc
,
argv
,
"D:r:d"
))
!=
-
1
)
while
((
c
=
getopt
_long
(
argc
,
argv
,
"D:r:d"
,
long_options
,
&
option_index
))
!=
-
1
)
{
switch
(
c
)
{
...
...
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