Re: TODO item -- Improve psql's handling of multi-line

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "Sergey E(dot) Koposov" <math(at)sai(dot)msu(dot)ru>
Cc: Andreas Seltenreich <seltenreich(at)gmx(dot)de>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-patches(at)postgresql(dot)org
Subject: Re: TODO item -- Improve psql's handling of multi-line
Date: 2005-12-08 03:00:23
Message-ID: 4397A1C7.9070005@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Sergey E. Koposov wrote:

>I also wanted this feature for a long time.
>And I agree that it is rather simple to just remove the \n when writing to the
>readline history file, but I don't think that's what everybody wants. I
>think that people want to preserve the original formatting...
>
>So in that case the solution can be just putting some symbol instead of \n
>in the history file, and during the loading of that file replace it back
>(that symbol can be zero byte for example). But I'm not sure that people
>will like that solution too.
>
>
>
>

A zero byte is probably a pretty bad choice. Some other low valued byte
(e.g. \x01 ) would probably work better.

And I agree that format preservation is highly desirable.

cheers

andrew

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Sergey E. Koposov 2005-12-08 04:13:48 Re: TODO item -- Improve psql's handling of multi-line
Previous Message Bruce Momjian 2005-12-08 02:37:13 Re: TODO item -- Improve psql's handling of multi-line queries