psql error in \? output on \w line

Поиск
Список
Период
Сортировка
От Zach Irmen
Тема psql error in \? output on \w line
Дата
Msg-id Pine.WNT.4.58.0401072007060.-452847@zi.ed.shawcable.net
обсуждение исходный текст
Ответы Re: psql error in \? output on \w line  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
As far as I can tell, the file argument for \w is required;
this contradicts what \? says for it (namely that it's optional).
A patch follows to fix this if it really is an error and not my
misunderstanding.

Zach Irmen

===================================================================
RCS file: /projects/cvsroot/pgsql-server/src/bin/psql/help.c,v
retrieving revision 1.84
diff -c -r1.84 help.c
*** help.c      1 Dec 2003 22:34:48 -0000       1.84
--- help.c      8 Jan 2004 03:02:10 -0000
***************
*** 195,201 ****
        fprintf(output, _("  \\p             show the contents of the query buffer\n"));
        fprintf(output, _("  \\r             reset (clear) the query buffer\n"));
        fprintf(output, _("  \\s [FILE]      display history or save it to file\n"));
!       fprintf(output, _("  \\w [FILE]      write query buffer to file\n"));
        fprintf(output, "\n");

        fprintf(output, _("Input/Output\n"));
--- 195,201 ----
        fprintf(output, _("  \\p             show the contents of the query buffer\n"));
        fprintf(output, _("  \\r             reset (clear) the query buffer\n"));
        fprintf(output, _("  \\s [FILE]      display history or save it to file\n"));
!       fprintf(output, _("  \\w FILE        write query buffer to file\n"));
        fprintf(output, "\n");

        fprintf(output, _("Input/Output\n"));

В списке pgsql-patches по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: SIGPIPE handling
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: psql \i handling ~ in specified file name