Re: Windows v readline - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Windows v readline
Date
Msg-id 6a4eec83-dbb4-65a8-319e-03c29ef6d94a@2ndquadrant.com
Whole thread Raw
In response to Re: Windows v readline  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2019-12-30 14:28, Tom Lane wrote:
> 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.

Yeah, basically remove tab completion altogether.  But readline would 
still be useful without that for line editing and history.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: parallel vacuum options/syntax
Next
From: Guillaume Lelarge
Date:
Subject: Re: parallel vacuum options/syntax