1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

> Please find attached a submission to add a "exit on error" option to

> pg_restore, as it seems that some people have scripts that rely on the
> previous "abort on error" default behavior when restoring data with a
> direct connection.
>
> Fabien Coelho
This commit is contained in:
Bruce Momjian
2004-08-20 04:20:23 +00:00
parent 46be0c18f1
commit daa076c4fd
4 changed files with 30 additions and 11 deletions

View File

@ -15,7 +15,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup.h,v 1.31 2004/07/13 03:00:17 momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup.h,v 1.32 2004/08/20 04:20:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -59,7 +59,7 @@ typedef struct _Archive
int maxRemoteVersion;
/* error handling */
bool die_on_errors; /* whether to die on sql errors... */
bool exit_on_error; /* whether to exit on SQL errors... */
int n_errors; /* number of errors (if no die) */
/* The rest is private */
@ -103,6 +103,7 @@ typedef struct _restoreOptions
char *username;
int ignoreVersion;
int requirePassword;
int exit_on_error;
bool *idWanted;
bool limitToList;