Re: psql error in \? output on \w line

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Zach Irmen <zirmen(at)shaw(dot)ca>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: psql error in \? output on \w line
Date: 2004-01-09 21:16:08
Message-ID: 200401092116.i09LG8w08093@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Patch applied. Thanks.

---------------------------------------------------------------------------

Zach Irmen wrote:
> 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"));
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-01-09 21:25:32 Re: fork/exec patch: CreateProcess calls for Win32
Previous Message Bruce Momjian 2004-01-09 21:11:33 Re: psql \i handling ~ in specified file name