RE: BUG #16059: Tab-completion of filenames in COPY commandsremoves required quotes - Mailing list pgsql-bugs

From Steven Winfield
Subject RE: BUG #16059: Tab-completion of filenames in COPY commandsremoves required quotes
Date
Msg-id E9FA92C2921F31408041863B74EE4C2001BDA54905@CCPMAILDAG03.cantab.local
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>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #16059: Tab-completion of filenames in COPY commands removes required quotes
Next
From: Andrey Lepikhov
Date:
Subject: Logical replication can be broken by domain constraint with NOT VALIDoption