Re: Should we work around msvc failing to compile tab-complete.c? - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Should we work around msvc failing to compile tab-complete.c?
Date
Msg-id 20240710170550.s76g5gkht3ad2uek@awork3.anarazel.de
Whole thread Raw
In response to Re: Should we work around msvc failing to compile tab-complete.c?  (Dave Page <dpage@pgadmin.org>)
List pgsql-hackers
Hi,

On 2024-07-10 10:55:50 +0100, Dave Page wrote:
> What is more relevant is that as far as I can see, we've never actually
> supported either libedit or readline in MSVC++ builds - which kinda makes
> sense because Windows terminals are very different from traditional *nix
> ones. Windows isn't supported by either libedit or readline as far as I can
> see, except through a couple of forks.
> 
> I imagine from mingw/cygwin builds, readline would only actually work
> properly in their respective terminals.

FWIW, if you can get readline to build (using something like [1] or one of the
forks that add the support) these days it does work even in the plain windows
"command prompt".

The only obvious thing that doesn't seem to work is ctrl-c cancelling queries
rather than terminating psql. But I think that's an issue independent of
readline.

Greetings,

Andres Freund

[1] https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-readline

Attachment

pgsql-hackers by date:

Previous
From: vignesh C
Date:
Subject: Re: long-standing data loss bug in initial sync of logical replication
Next
From: Imran Zaheer
Date:
Subject: Re: Windows: openssl & gssapi dislike each other