RE: BUG #15535: psql: \copy: parse error at... - Mailing list pgsql-bugs

From Voillequin, Jean-Marc
Subject RE: BUG #15535: psql: \copy: parse error at...
Date
Msg-id 1EC8157EB499BF459A516ADCF135ADCE3A006FE3@LON-WGMSX712.ad.moodys.net
Whole thread Raw
In response to Re: BUG #15535: psql: \copy: parse error at...  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: BUG #15535: psql: \copy: parse error at...
List pgsql-bugs

Hello,

 

You’re right David, but:

 

SIMPLE=> \copy (select * from /*comment*/ pg_tables) to 'test';

COPY 76

 

SIMPLE=> \copy (select * from /*comment with a closing parenthesis)*/ pg_tables) to 'test';

\copy: parse error at "*/"

 

Only comments without parenthesis are supported?

Regards

 

From: David G. Johnston [mailto:david.g.johnston@gmail.com]
Sent: Wednesday, December 05, 2018 1:31 PM
To: Voillequin, Jean-Marc <Jean-Marc.Voillequin@moodys.com>; pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15535: psql: \copy: parse error at...

 

 

CAUTION: This email originated from outside of Moody's. Do not click links or open attachments unless you recognize the sender and know the content is safe.

 

On Wednesday, December 5, 2018, PG Bug reporting form <noreply@postgresql.org> wrote:

The following bug has been logged on the website:

Bug reference:      15535
Logged by:          jean-marc voillequin
Email address:      jean-marc.voillequin@moodys.com
PostgreSQL version: 10.3
Operating system:   windows 7
Description:       

When I run the following copy command under psql:

\copy pg_tables /*(*/ to 'test';

I get:
\copy: parse error at "/*"

The comment /*(*/ is not ignored.

 

Where does it say that it should be?

 

David J. 

-----------------------------------------
Moody's monitors email communications through its networks for regulatory compliance purposes and to protect its customers, employees and business and where allowed to do so by applicable law. The information contained in this e-mail message, and any attachment thereto, is confidential and may not be disclosed without our express permission. If you are not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution or copying of this message, or any attachment thereto, in whole or in part, is strictly prohibited. If you have received this message in error, please immediately notify us by telephone, fax or e-mail and delete the message and all of its attachments. Every effort is made to keep our network free from viruses. You should, however, review this e-mail message, as well as any attachment thereto, for viruses. We take no responsibility and have no liability for any computer virus which may be transferred via this e-mail message.

This email was sent to you by Moody’s Investors Service EMEA Limited
Registered office address:
One Canada Square
Canary Wharf
London, E14 5FA
Registered in England and Wales No: 8922701
-----------------------------------------

pgsql-bugs by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: BUG #15536: ERROR: column "value " does not exist
Next
From: "David G. Johnston"
Date:
Subject: Re: BUG #15535: psql: \copy: parse error at...