Re: Windows v readline - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Windows v readline
Date
Msg-id 30337.1577712489@sss.pgh.pa.us
Whole thread Raw
In response to Re: Windows v readline  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: Windows v readline  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> On 2019-09-29 22:55, Andrew Dunstan wrote:
>> It would certainly be nice to have readline-enabled psql on Windows if
>> possible.

> I tried this out.  First, it doesn't build, because readline doesn't do 
> the dllimport/dllexport dance on global variables, so all references to 
> rl_* global variables in tab-complete.c fail (similar to [0]).  After 
> patching those out, it builds, but it doesn't work.

What do you mean by "patching those out" --- you removed all of
tab-complete's external variable assignments?  That would certainly
disable tab completion, at a minimum.

> It doesn't print a 
> prompt, keys don't do anything sensible.  I can enter SQL commands and 
> get results back, but the readline part doesn't do anything sensible AFAICT.

I wonder if readline was confused about the terminal type, or if it
decided that the input file was not-a-tty for some reason.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: [HACKERS] Block level parallel vacuum
Next
From: Tom Lane
Date:
Subject: Re: comment regarding double timestamps; and, infinite timestamps and NaN