pg_restore -F bug - Mailing list pgsql-patches

From Neil Conway
Subject pg_restore -F bug
Date
Msg-id 4271DD83.1010109@samurai.com
Whole thread Raw
Responses Re: pg_restore -F bug
Re: pg_restore -F bug
List pgsql-patches
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. Patch applied to HEAD. Is this
worth backporting?

BTW, is there a reason that pg_restore seems to accept 'f', 't', or 'c'
parameters to this argument, but the documentation only documents 't'
and 'c'?

-Neil
Index: src/bin/pg_dump/pg_restore.c
===================================================================
RCS file: /var/lib/cvs/pgsql/src/bin/pg_dump/pg_restore.c,v
retrieving revision 1.69
diff -c -r1.69 pg_restore.c
*** src/bin/pg_dump/pg_restore.c    22 Feb 2005 04:39:38 -0000    1.69
--- src/bin/pg_dump/pg_restore.c    29 Apr 2005 06:46:34 -0000
***************
*** 313,319 ****
                  break;

              default:
!                 write_msg("unrecognized archive format '%s'; please specify 't' or 'c'\n",
                            opts->formatName);
                  exit(1);
          }
--- 313,319 ----
                  break;

              default:
!                 write_msg(NULL, "unrecognized archive format '%s'; please specify 't' or 'c'\n",
                            opts->formatName);
                  exit(1);
          }

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Update Borland makefile and improve MSC makefile
Next
From: "f.guidi@libero.it"
Date:
Subject: Re: [INTERFACES] bcc32 libpq compile problem