Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 56CA6B5DBF6; Tue, 5 Jul 2011 12:30:17 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 95407-01; Tue, 5 Jul 2011 15:30:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 1DBDEB5DBCE; Tue, 5 Jul 2011 12:30:10 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p65FU4xB003534; Tue, 5 Jul 2011 11:30:04 -0400 (EDT) To: Robert Haas cc: Alvaro Herrera , Pavel Golub , pgsql-bugs , PostgreSQL Hackers Subject: Re: [HACKERS] COPY .... WITH (FORMAT binary) causes syntax error at or near "binary" In-reply-to: References: <6510382810.20110705175206@gf.microolap.com> <1309878337-sup-685@alvh.no-ip.org> Comments: In-reply-to Robert Haas message dated "Tue, 05 Jul 2011 11:23:11 -0400" Date: Tue, 05 Jul 2011 11:30:04 -0400 Message-ID: <3533.1309879804@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201107/30 X-Sequence-Number: 30642 Robert Haas writes: > On Tue, Jul 5, 2011 at 11:06 AM, Alvaro Herrera > wrote: >> I assume it's not in unreserved_keyword because it would cause a >> shift/reduce conflict elsewhere. > Yeah. In particular, it conflicts with the ancient copy syntax which > we still support for backwards compatibility with versions < 7.3. We > can fix the immediate problem with something like the attached. > (a) Should we do that? That seems like a horrid crock ... regards, tom lane