Re: BUG #5411: \copy do not work with dot "." in query - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5411: \copy do not work with dot "." in query
Date
Msg-id 22013.1270875389@sss.pgh.pa.us
Whole thread Raw
In response to BUG #5411: \copy do not work with dot "." in query  ("Vitalii Tymchyshyn" <tivv00@gmail.com>)
List pgsql-bugs
"Vitalii Tymchyshyn" <tivv00@gmail.com> writes:
> dict=> \copy (select 1.0) to test.tst
> ERROR:  syntax error at or near "."
> LINE 1: COPY ( select 1 . 0 ) TO STDOUT
>                         ^

This case works as expected in CVS HEAD, apparently because of this fix:
http://archives.postgresql.org/pgsql-committers/2009-09/msg00184.php

I doubt we'd risk backpatching the whole change, but maybe it would
be sensible to backpatch just the changes in the COPY (SELECT) part
(lines 119-137 in HEAD).  Not sure that it's worth taking any risk
for, though, given the lack of previous complaints.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: pgadmin supports on SLES10.3
Next
From: Craig Ringer
Date:
Subject: Re: bugs that have not been replied-to on list