aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-01-16 14:59:20 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2022-01-16 14:59:20 -0500
commitfe75517443b7c38f5251d007d06321655ce6c0b6 (patch)
treea966139f0f12d3fd1d2bb8c4c0de4e450c7b9e36 /contrib/postgres_fdw/postgres_fdw.c
parented48e3582e8447cb9969c366e46c82a56b7608cd (diff)
downloadpostgresql-fe75517443b7c38f5251d007d06321655ce6c0b6.tar.gz
postgresql-fe75517443b7c38f5251d007d06321655ce6c0b6.zip
Fix psql's tab-completion of enum label values.
Since enum labels have to be single-quoted, this part of the tab completion machinery got side-swiped by commit cd69ec66c. A side-effect of that commit is that (at least with some versions of Readline) the text string passed for completion will omit the leading quote mark of the enum label literal. Libedit still acts the same as before, though, so adapt COMPLETE_WITH_ENUM_VALUE so that it can cope with either convention. Also, when we fail to find any valid completion, set rl_completion_suppress_quote = 1. Otherwise readline will go ahead and append a closing quote, which is unwanted. Per report from Peter Eisentraut. Back-patch to v13 where cd69ec66c came in. Discussion: https://postgr.es/m/8ca82d89-ec3d-8b28-8291-500efaf23b25@enterprisedb.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions