]> granicus.if.org Git - postgresql/commit
Fix improper initialization order for readline.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Dec 2015 21:55:23 +0000 (16:55 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Dec 2015 21:55:33 +0000 (16:55 -0500)
commit5ec0aad018c3f36f9bd3e844f20562fb3c5d4590
treeb1d780b81a9ced1eaf31e3d2120dee3b4213ed3a
parent0c6881fd142383845974ac836f3e6476cbe974ee
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.
src/bin/psql/input.c