Re: tab completion of enum values is broken

2022-01-14 Thread Tom Lane
I wrote: > Oh ... experimenting on macOS (with the system-provided libedit) > shows no bug here. So I guess we'll need to make this conditional > somehow, perhaps on USE_FILENAME_QUOTING_FUNCTIONS. That's another > reason for not going overboard. After further fooling with that, I concluded that

Re: tab completion of enum values is broken

2022-01-13 Thread Tom Lane
Peter Eisentraut writes: > This doesn't work anymore: > create type e2 as enum ('foo', 'bar'); > alter type e2 rename value 'b > This now results in > alter type e2 rename value 'b' The main issue here is that Query_for_list_of_enum_values[_with_schema] is designed to match against a pre-quoted l

Re: tab completion of enum values is broken

2022-01-13 Thread Tom Lane
Peter Eisentraut writes: > This doesn't work anymore: > create type e2 as enum ('foo', 'bar'); > alter type e2 rename value 'b > This now results in > alter type e2 rename value 'b' Ugh. I'll take a look. regards, tom lane

tab completion of enum values is broken

2022-01-13 Thread Peter Eisentraut
This doesn't work anymore: create type e2 as enum ('foo', 'bar'); alter type e2 rename value 'b This now results in alter type e2 rename value 'b' Bisecting blames commit cd69ec66c88633c09bc9a984a7f0930e09c7c96e Author: Tom Lane Date: Thu Jan 23 11:07:12 2020 -0500 Improve psql's tab