pgsql: Fix improper initialization order for readline. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix improper initialization order for readline.
Date
Msg-id E1a9gWr-0007t2-9P@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix improper initialization order for readline.

Turns out we must set rl_basic_word_break_characters *before* we call
rl_initialize() the first time, because it will quietly copy that value
elsewhere --- but only on the first call.  (Love these undocumented
dependencies.)  I broke this yesterday in commit 2ec477dc8108339d;
like that commit, back-patch to all active branches.  Per report from
Pavel Stehule.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/b417779886f2d63f17f2049ce7ee7b290c470e15

Modified Files
--------------
src/bin/psql/input.c |    4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix improper initialization order for readline.
Next
From: Tom Lane
Date:
Subject: pgsql: Adjust behavior of single-user -j mode for better initdb error r