Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id F360EB5DC46; Tue, 5 Jul 2011 13:04:35 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 30851-01-3; Tue, 5 Jul 2011 16:04:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f47.google.com (mail-fx0-f47.google.com [209.85.161.47]) by mail.postgresql.org (Postfix) with ESMTP id 99791B5DC58; Tue, 5 Jul 2011 13:04:19 -0300 (ADT) Received: by fxg11 with SMTP id 11so7008884fxg.34 for ; Tue, 05 Jul 2011 09:04:18 -0700 (PDT) Received: by 10.223.97.65 with SMTP id k1mr8140525fan.0.1309881744198; Tue, 05 Jul 2011 09:02:24 -0700 (PDT) Received: from [192.168.1.104] (58-53-133-95.pool.ukrtel.net [95.133.53.58]) by mx.google.com with ESMTPS id u20sm3244061fac.18.2011.07.05.09.02.21 (version=SSLv3 cipher=OTHER); Tue, 05 Jul 2011 09:02:22 -0700 (PDT) Date: Tue, 5 Jul 2011 19:02:13 +0300 From: Pavel Golub Reply-To: Pavel Golub Organization: Microolap X-Priority: 3 (Normal) Message-ID: <1204438484.20110705190213@gf.microolap.com> To: Robert Haas CC: Alvaro Herrera , 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> <1991135552.20110705183715@gf.microolap.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 X-Spam-Level: X-Archive-Number: 201107/36 X-Sequence-Number: 30648 Hello, Robert. You wrote: RH> On Tue, Jul 5, 2011 at 11:37 AM, Pavel Golub wrote: >> RH> Yeah.  In particular, it conflicts with the ancient copy syntax which >> RH> we still support for backwards compatibility with versions < 7.3.  We >> RH> can fix the immediate problem with something like the attached. >> >> This patch is ugly. Sorry, Robert, but it's true. RH> No hard feelings here. If you, as the reporter of the problem, don't RH> feel that it's serious enough to warrant back-patching a fix, then I'm RH> not going to insist. However, if we don't do what I've proposed here, RH> then I think 8.4 and 9.0 and probably 9.1 are going to need to stay as RH> they are, because... >> RH> (c) Should we consider removing compatibility with the ancient copy >> RH> syntax in 9.2, and de-reserving that keyword?  (Given that the >> RH> workaround is this simple, I'm inclined to say "no", but could be >> RH> persuaded otherwise.) >> >> +1 for this. Pre-7.3 syntax is dead in fact for many years. RH> ...this is not something we're going to back-patch. Patches needed for 9.0 and 9.1 only, because this is new format comparing with 8.x -- With best wishes, Pavel mailto:pavel@gf.microolap.com