This patch fixes a bug in the error message emitted by pg_restore on an
authorNeil Conway <neilc@samurai.com>
Sat, 30 Apr 2005 08:01:29 +0000 (08:01 +0000)
committerNeil Conway <neilc@samurai.com>
Sat, 30 Apr 2005 08:01:29 +0000 (08:01 +0000)
incorrect -F argument: write_msg() expects its first parameter to be a
"module name", not the format string.

src/bin/pg_dump/pg_restore.c

index 46a3ee8b2e9821b469221f71de04038b8d6eb0f5..44f9033bef24a14ca5006d81732030b0fdd0f207 100644 (file)
@@ -34,7 +34,7 @@
  *
  *
  * IDENTIFICATION
- *             $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_restore.c,v 1.43 2002/10/18 22:05:36 petere Exp $
+ *             $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_restore.c,v 1.43.2.1 2005/04/30 08:01:29 neilc Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -327,7 +327,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);
                }