The improvement for psql of 8.2beta1 not implemented under Windows

Started by Yourfriendover 19 years ago5 messageshackers
Jump to latest
#1Yourfriend
doudou586@gmail.com

According to the release notes of 8.2, the following item should have been
implemented,

E.1.3.11. psql<http://developer.postgresql.org/pgdocs/postgres/app-psql.html&gt;Changes

-

Save multi-line statements as a single entry, rather than one line at
a time (Sergey E. Koposov)

This makes up-arrow recall of queries easier.

The test shows that it's OK under Linux (Slackware), but malfunctioned on
Windows XP.

Daojing.Zhou from P.R.C
http://www.pgsqldb.org/

#2Bruce Momjian
bruce@momjian.us
In reply to: Yourfriend (#1)
Re: The improvement for psql of 8.2beta1 not

Yourfriend wrote:

According to the release notes of 8.2, the following item should have been
implemented,

E.1.3.11. psql<http://developer.postgresql.org/pgdocs/postgres/app-psql.html&gt;Changes

-

Save multi-line statements as a single entry, rather than one line at
a time (Sergey E. Koposov)

This makes up-arrow recall of queries easier.

The test shows that it's OK under Linux (Slackware), but malfunctioned on
Windows XP.

Good point. We don't use readline on Win32, but rather the native
command-line control, over which we have little control. Update release
item text is:

<listitem>
<para>
Save multi-line statements as a single entry, rather than
one line at a time (Sergey E. Koposov)
</para>

<para>
This makes up-arrow recall of queries easier. (This is
not availble on Win32 because it typically uses the native
command-line editing present in the operating system.)
</para>
</listitem>

--
Bruce Momjian bruce@momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#3Joshua D. Drake
jd@commandprompt.com
In reply to: Bruce Momjian (#2)
Re: The improvement for psql of 8.2beta1 not

Bruce Momjian wrote:

Yourfriend wrote:

According to the release notes of 8.2, the following item should have been
implemented,

E.1.3.11. psql<http://developer.postgresql.org/pgdocs/postgres/app-psql.html&gt;Changes

-

Save multi-line statements as a single entry, rather than one line at
a time (Sergey E. Koposov)

This makes up-arrow recall of queries easier.

The test shows that it's OK under Linux (Slackware), but malfunctioned on
Windows XP.

Good point. We don't use readline on Win32, but rather the native
command-line control, over which we have little control.

Does libedit compile under mingw?

Joshua D. Drake

--

=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/

#4Magnus Hagander
magnus@hagander.net
In reply to: Joshua D. Drake (#3)
Re: The improvement for psql of 8.2beta1 not

The test shows that it's OK under Linux (Slackware), but
malfunctioned on Windows XP.

Good point. We don't use readline on Win32, but rather the native
command-line control, over which we have little control.

Does libedit compile under mingw?

No. At least, it didn't the last couple of times I've tried it.

//Magnus

#5Merlin Moncure
mmoncure@gmail.com
In reply to: Magnus Hagander (#4)
Re: The improvement for psql of 8.2beta1 not

On 10/8/06, Magnus Hagander <mha@sollentuna.net> wrote:

The test shows that it's OK under Linux (Slackware), but
malfunctioned on Windows XP.

Good point. We don't use readline on Win32, but rather the native
command-line control, over which we have little control.

Does libedit compile under mingw?

No. At least, it didn't the last couple of times I've tried it.

I compile psql with cygwin to get the readline version. Also the
win32 version defatults to pagination with 'more' instead of 'less'.

merlin