Skip to content

Commit 18b5ef5

Browse files
author
Neil Conway
committed
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.
1 parent daec16d commit 18b5ef5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_dump/pg_restore.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*
3535
*
3636
* IDENTIFICATION
37-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.69 2005/02/22 04:39:38 momjian Exp $
37+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.70 2005/04/29 07:08:06 neilc Exp $
3838
*
3939
*-------------------------------------------------------------------------
4040
*/
@@ -313,7 +313,7 @@ main(int argc, char **argv)
313313
break;
314314

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy