RE: BUG #16059: Tab-completion of filenames in COPY commandsremoves required quotes

Поиск
Список
Период
Сортировка
От Steven Winfield
Тема RE: BUG #16059: Tab-completion of filenames in COPY commandsremoves required quotes
Дата
Msg-id E9FA92C2921F31408041863B74EE4C2001BDA54905@CCPMAILDAG03.cantab.local
обсуждение исходный текст
Ответ на Re: BUG #16059: Tab-completion of filenames in COPY commands removes required quotes  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
>> As per the documentation[1], the COPY command requires the output filename
>> to be single-quoted.
...
>> Note that using the \copy command instead works fine, as filenames do not
>> need to be quoted in that case.

>Yeah, it seems like a bad idea to override the user's choice to write
>a quote, even if one is not formally necessary.  I propose the attached.

Thanks for taking a look at this. It will save me (and I hope many others) from much frustration!

But, to be clear, for the COPY command the single quotes *are* formally necessary, so at the moment tab-completion is
turninga valid (partial) invocation into an invalid one. 

Best,
Steve.





В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #16059: Tab-completion of filenames in COPY commands removes required quotes
Следующее
От: Andrey Lepikhov
Дата:
Сообщение: Logical replication can be broken by domain constraint with NOT VALIDoption