diff --git a/src/bin/psql/input.c b/src/bin/psql/input.c index 14ac034b576..30c580c12d3 100644 --- a/src/bin/psql/input.c +++ b/src/bin/psql/input.c @@ -346,8 +346,10 @@ initializeInput(int flags) char home[MAXPGPATH]; useReadline = true; - rl_initialize(); + + /* these two things must be done in this order: */ initialize_readline(); + rl_initialize(); useHistory = true; using_history();