Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 7C0CFB5DBF6; Tue, 5 Jul 2011 12:34:48 -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 99831-02; Tue, 5 Jul 2011 15:34:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com [75.180.132.123]) by mail.postgresql.org (Postfix) with ESMTP id EE994B5DBCE; Tue, 5 Jul 2011 12:34:37 -0300 (ADT) X-Authority-Analysis: v=1.1 cv=pLPlkKcK38cN4Cv4YkVeTGGRYpmKez/IrX640LVKWnc= c=1 sm=0 a=FR8lIomz6REA:10 a=5i-z-FunWBEA:10 a=Acs96HtBqXsA:10 a=8nJEP1OIZ-IA:10 a=qCTYjJJ2g1SgQhsHZAUATw==:17 a=Zv4qwi1N6i9cn3bajhYA:9 a=wPNLvfGTeEIA:10 a=qCTYjJJ2g1SgQhsHZAUATw==:117 X-Cloudmark-Score: 0 X-Originating-IP: 98.27.48.207 Received: from [98.27.48.207] ([98.27.48.207:43257] helo=[192.168.10.146]) by cdptpa-oedge04.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 65/44-20202-C0F231E4; Tue, 05 Jul 2011 15:34:37 +0000 Message-ID: <4E132F0C.8090606@dunslane.net> Date: Tue, 05 Jul 2011 11:34:36 -0400 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Thunderbird/3.1.10 MIME-Version: 1.0 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" References: <6510382810.20110705175206@gf.microolap.com> <1309878337-sup-685@alvh.no-ip.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201107/31 X-Sequence-Number: 30643 On 07/05/2011 11:23 AM, Robert Haas wrote: > > 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? yes. > (b) Should we back-patch it to 9.1 and 9.0? yes. > (c) Should we consider removing compatibility with the ancient copy > syntax in 9.2, and de-reserving that keyword? (Given that the > workaround is this simple, I'm inclined to say "no", but could be > persuaded otherwise.) > I'm inclined to say yes, but mainly because it's just old cruft. I don't expect to be able,say, to load a pre-7.3 dump into a modern Postgres. cheers andrew