diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-04-22 02:39:10 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-04-22 02:39:10 +0000 |
| commit | ec7c4c1b66d1ed9eba5ec22fdb7fe4618ece4d25 (patch) | |
| tree | 9827e3d9a413ee12d9dbea0473e6fdb4821d4d1b /src/bin/pg_dump/pg_backup_db.c | |
| parent | be6bbcef5678c67f7f1f48972d126233ff64ac48 (diff) | |
| download | postgresql-ec7c4c1b66d1ed9eba5ec22fdb7fe4618ece4d25.tar.gz | |
Please find attached a small patch so that "pg_restore" ignores some sql
errors. This is the second submission, which integrates Tom comments about
localisation and exit code. I also added some comments about one sql
command which is not ignored.
Fabien COELHO
Diffstat (limited to 'src/bin/pg_dump/pg_backup_db.c')
| -rw-r--r-- | src/bin/pg_dump/pg_backup_db.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_dump/pg_backup_db.c b/src/bin/pg_dump/pg_backup_db.c index b2677e8b3a..df2f8af3ff 100644 --- a/src/bin/pg_dump/pg_backup_db.c +++ b/src/bin/pg_dump/pg_backup_db.c @@ -5,7 +5,7 @@ * Implements the basic DB functions used by the archiver. * * IDENTIFICATION - * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.52 2004/03/03 21:28:54 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.53 2004/04/22 02:39:10 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -316,8 +316,8 @@ _executeSqlCommand(ArchiveHandle *AH, PGconn *conn, PQExpBuffer qry, char *desc) AH->pgCopyIn = 1; } else - die_horribly(AH, modulename, "%s: %s", - desc, PQerrorMessage(AH->connection)); + warn_or_die_horribly(AH, modulename, "%s: %s", + desc, PQerrorMessage(AH->connection)); } PQclear(res); |
