Re: BUG #16059: Tab-completion of filenames in COPY commands removesrequired quotes - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: BUG #16059: Tab-completion of filenames in COPY commands removesrequired quotes
Date
Msg-id 6ccd23e4-ce58-c2b5-39a1-801a9937ae86@2ndquadrant.com
Whole thread Raw
In response to Re: BUG #16059: Tab-completion of filenames in COPY commands removes required quotes  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #16059: Tab-completion of filenames in COPY commands removes required quotes
List pgsql-hackers
On 2019-11-03 23:40, Tom Lane wrote:
> * The patch now always quotes completed filenames, so quote_if_needed()
> is misnamed and overcomplicated for this use-case.  I left the extra
> generality in place for possible future use.  On the other hand, this
> is the*only*  use-case, so you could also argue that we should just
> simplify the function's API.  I have no strong opinion about that.

I haven't found an explanation in this thread why it does always quote 
now.  That seems a bit unusual.  Is there a reason for this?  Can we do 
without it?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: [PATCH] Fix parallel query doc typos
Next
From: Amit Kapila
Date:
Subject: Re: parallel vacuum options/syntax