aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2005-04-29 07:08:06 +0000
committerNeil Conway <neilc@samurai.com>2005-04-29 07:08:06 +0000
commit18b5ef5a76f39436782d3fc0c76e3712027cc235 (patch)
treef252a7d7217d2fe34350bbcd726f9fce7959ea73 /src
parentdaec16d0baa44fdc8b78f262ff993489716ca4ec (diff)
downloadpostgresql-18b5ef5a76f39436782d3fc0c76e3712027cc235.tar.gz
postgresql-18b5ef5a76f39436782d3fc0c76e3712027cc235.zip
This patch fixes a bug in the error message emitted by pg_restore on an
incorrect -F argument: write_msg() expects its first parameter to be a "module name", not the format string.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_dump/pg_restore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_dump/pg_restore.c b/src/bin/pg_dump/pg_restore.c
index 9d2a16d4675..b99e3b7adad 100644
--- a/src/bin/pg_dump/pg_restore.c
+++ b/src/bin/pg_dump/pg_restore.c
@@ -34,7 +34,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.69 2005/02/22 04:39:38 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.70 2005/04/29 07:08:06 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@@ -313,7 +313,7 @@ main(int argc, char **argv)
break;
default:
- write_msg("unrecognized archive format '%s'; please specify 't' or 'c'\n",
+ write_msg(NULL, "unrecognized archive format '%s'; please specify 't' or 'c'\n",
opts->formatName);
exit(1);
}