On Wed, Dec 16, 2015 at 2:12 PM, Tom Lane <[email protected]> wrote: > Merlin Moncure <[email protected]> writes: >> On Wed, Dec 16, 2015 at 1:29 PM, Tom Lane <[email protected]> wrote: >>> So I now think that print.c shouldn't be involved at all, and the right >>> thing to do is just have gets_interactive() invoke the resize function >>> immediately before calling readline(). That will still leave a window >>> for SIGWINCH to be missed, but it's a pretty tiny one. > >> right -- agreed. > > I tried that and found out that the first call dumps core because readline > hasn't been initialized yet. To fix that, we need an explicit call to > rl_initialize() instead of depending on readline() to do it for us. > So I arrive at the attached modified patch.
This is working great. Is there anything left for me to do here? merlin -- Sent via pgsql-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
