pg_restore -F bug
От | Neil Conway |
---|---|
Тема | pg_restore -F bug |
Дата | |
Msg-id | 4271DD83.1010109@samurai.com обсуждение исходный текст |
Ответы |
Re: pg_restore -F bug
Re: pg_restore -F bug |
Список | 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 по дате отправления: