summaryrefslogtreecommitdiff
path: root/src/bin/psql/input.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-12-02 13:06:27 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2021-12-02 13:06:27 -0500
commita7da41981021575e2359683d994eec6c9d246321 (patch)
treefcc3b7bc23f87bb62164ee62b21d740687cd74d2 /src/bin/psql/input.c
parenta22d6a2cb62c4fc6d7c4b077d8014fd4ffaec426 (diff)
downloadpostgresql-a7da41981021575e2359683d994eec6c9d246321.tar.gz
Add configure probe for rl_variable_bind().
Some exceedingly ancient readline libraries lack this function, causing commit 3d858af07 to fail. Per buildfarm (via Michael Paquier). Discussion: https://postgr.es/m/E1msTLm-0007Cm-Ri@gemulon.postgresql.org
Diffstat (limited to 'src/bin/psql/input.c')
-rw-r--r--src/bin/psql/input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/psql/input.c b/src/bin/psql/input.c
index 1dcd95a7b9..501f5d5fbc 100644
--- a/src/bin/psql/input.c
+++ b/src/bin/psql/input.c
@@ -356,8 +356,10 @@ initializeInput(int flags)
/* set appropriate values for Readline's global variables */
initialize_readline();
+#ifdef HAVE_RL_VARIABLE_BIND
/* set comment-begin to a useful value for SQL */
(void) rl_variable_bind("comment-begin", "-- ");
+#endif
/* this reads ~/.inputrc, so do it after rl_variable_bind */
rl_initialize();