|
6 | 6 | * Portions Copyright (c) 1994, Regents of the University of California |
7 | 7 | * |
8 | 8 | * |
9 | | - * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.105 2008/06/26 01:35:45 momjian Exp $ |
| 9 | + * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.106 2008/08/29 17:28:43 alvherre Exp $ |
10 | 10 | * |
11 | 11 | *------------------------------------------------------------------------- |
12 | 12 | */ |
@@ -120,6 +120,7 @@ main(int argc, char *argv[]) |
120 | 120 | {"disable-triggers",no_argument,&disable_triggers,1}, |
121 | 121 | {"no-tablespaces",no_argument,&no_tablespaces,1}, |
122 | 122 | {"use-set-session-authorization",no_argument,&use_setsessauth,1}, |
| 123 | +{"lock-wait-timeout",required_argument,NULL,2}, |
123 | 124 |
|
124 | 125 | {NULL,0,NULL,0} |
125 | 126 | }; |
@@ -305,6 +306,11 @@ main(int argc, char *argv[]) |
305 | 306 | case0: |
306 | 307 | break; |
307 | 308 |
|
| 309 | +case2: |
| 310 | +appendPQExpBuffer(pgdumpopts," --lock-wait-timeout="); |
| 311 | +appendPQExpBuffer(pgdumpopts,optarg); |
| 312 | +break; |
| 313 | + |
308 | 314 | default: |
309 | 315 | fprintf(stderr,_("Try \"%s --help\" for more information.\n"),progname); |
310 | 316 | exit(1); |
@@ -488,6 +494,8 @@ help(void) |
488 | 494 | printf(_(" -f, --file=FILENAME output file name\n")); |
489 | 495 | printf(_(" --help show this help, then exit\n")); |
490 | 496 | printf(_(" --version output version information, then exit\n")); |
| 497 | +printf(_(" --lock-wait-timeout=TIMEOUT\n" |
| 498 | +" fail after waiting TIMEOUT for a table lock\n")); |
491 | 499 | printf(_("\nOptions controlling the output content:\n")); |
492 | 500 | printf(_(" -a, --data-only dump only the data, not the schema\n")); |
493 | 501 | printf(_(" -c, --clean clean (drop) databases prior to create\n")); |
|