Re: BUG #16059: Tab-completion of filenames in COPY commands removesrequired quotes

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #16059: Tab-completion of filenames in COPY commands removesrequired quotes
Дата
Msg-id 20191227200333.GA20015@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: BUG #16059: Tab-completion of filenames in COPY commands removes required quotes  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #16059: Tab-completion of filenames in COPY commands removes required quotes  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2019-Dec-27, Tom Lane wrote:

> I wrote:
> > [ psql-filename-completion-fixes-2.patch ]
> 
> The cfbot noted this was broken by the removal of pg_config.h.win32,
> so here's a new version rebased over that.  No changes other than
> adjusting the MSVC autoconf-substitute code.

Works well for me.

One minor thing I noticed is that if I enter
\copy t from '/tmp/t'<tab>
and I have files /tmp/t and /tmp/tst then it removes the ending quote.
I can live with that, since the tab there is pointless anyway.
(The unpatched version removes *both* quotes.  The quotes there are not
mandatory, but the new version works better when there are files with
whitespace in the name.)

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Justin Pryzby
Дата:
Сообщение: Re: [PATCH v1] pg_ls_tmpdir to show directories
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Allow cluster owner to bypass authentication