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
7ad60b49
Commit
7ad60b49
authored
Aug 29, 2008
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup pg_dumpall adding --lock-wait-timeout, to match pg_dump.
David Gould
parent
45711851
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
doc/src/sgml/ref/pg_dumpall.sgml
doc/src/sgml/ref/pg_dumpall.sgml
+17
-1
src/bin/pg_dump/pg_dumpall.c
src/bin/pg_dump/pg_dumpall.c
+9
-1
No files found.
doc/src/sgml/ref/pg_dumpall.sgml
View file @
7ad60b49
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.7
2 2008/04/13 03:49:21 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.7
3 2008/08/29 17:28:43 alvherre
Exp $
PostgreSQL documentation
-->
...
...
@@ -195,6 +195,22 @@ PostgreSQL documentation
</listitem>
</varlistentry>
<varlistentry>
<term><option>--lock-wait-timeout=<replaceable class="parameter">timeout</replaceable></option></term>
<listitem>
<para>
Do not wait forever to acquire shared table locks at the beginning of
the dump. Instead fail if unable to lock a table within the specified
<replaceable class="parameter">timeout</>. The timeout may be
specified in any of the formats accepted by <command>SET
statement_timeout</>. (Allowed values vary depending on the server
version you are dumping from, but an integer number of milliseconds
is accepted by all versions since 7.3. This option is ignored when
dumping from a pre-7.3 server.)
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>--no-tablespaces</option></term>
<listitem>
...
...
src/bin/pg_dump/pg_dumpall.c
View file @
7ad60b49
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.10
5 2008/06/26 01:35:45 momjian
Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.10
6 2008/08/29 17:28:43 alvherre
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -120,6 +120,7 @@ main(int argc, char *argv[])
{
"disable-triggers"
,
no_argument
,
&
disable_triggers
,
1
},
{
"no-tablespaces"
,
no_argument
,
&
no_tablespaces
,
1
},
{
"use-set-session-authorization"
,
no_argument
,
&
use_setsessauth
,
1
},
{
"lock-wait-timeout"
,
required_argument
,
NULL
,
2
},
{
NULL
,
0
,
NULL
,
0
}
};
...
...
@@ -305,6 +306,11 @@ main(int argc, char *argv[])
case
0
:
break
;
case
2
:
appendPQExpBuffer
(
pgdumpopts
,
" --lock-wait-timeout="
);
appendPQExpBuffer
(
pgdumpopts
,
optarg
);
break
;
default:
fprintf
(
stderr
,
_
(
"Try
\"
%s --help
\"
for more information.
\n
"
),
progname
);
exit
(
1
);
...
...
@@ -488,6 +494,8 @@ help(void)
printf
(
_
(
" -f, --file=FILENAME output file name
\n
"
));
printf
(
_
(
" --help show this help, then exit
\n
"
));
printf
(
_
(
" --version output version information, then exit
\n
"
));
printf
(
_
(
" --lock-wait-timeout=TIMEOUT
\n
"
" fail after waiting TIMEOUT for a table lock
\n
"
));
printf
(
_
(
"
\n
Options controlling the output content:
\n
"
));
printf
(
_
(
" -a, --data-only dump only the data, not the schema
\n
"
));
printf
(
_
(
" -c, --clean clean (drop) databases prior to create
\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