Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 88DEFB5DBEE; Tue, 5 Jul 2011 11:52:30 -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 59830-07-2; Tue, 5 Jul 2011 14:52:23 +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 BD1BCB5DC07; Tue, 5 Jul 2011 11:52:16 -0300 (ADT) Received: by fxg11 with SMTP id 11so6918013fxg.34 for ; Tue, 05 Jul 2011 07:52:16 -0700 (PDT) Received: by 10.223.77.92 with SMTP id f28mr8173399fak.37.1309877536321; Tue, 05 Jul 2011 07:52:16 -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 e16sm945253fak.17.2011.07.05.07.52.13 (version=SSLv3 cipher=OTHER); Tue, 05 Jul 2011 07:52:14 -0700 (PDT) Date: Tue, 5 Jul 2011 17:52:06 +0300 From: Pavel Golub Reply-To: Pavel Golub Organization: Microolap X-Priority: 3 (Normal) Message-ID: <6510382810.20110705175206@gf.microolap.com> To: pgsql-bugs@postgresql.org CC: PostgreSQL Hackers Subject: COPY .... WITH (FORMAT binary) causes syntax error at or near "binary" MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 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/26 X-Sequence-Number: 30638 Hello. System: PostgreSQL v9.0 Windows XP SP3 SQL: COPY "tablename" TO STDOUT WITH (FORMAT binary) ERROR: syntax error at or near "binary" LINE 1: ...OPY "tablename" TO STDOUT WITH (FORMAT binary) ^ ********** Error ********** ERROR: syntax error at or near "binary" SQL state: 42601 Character: 55 But if I use 'FORMAT text' or 'FORMAT csv' all is OK. Suppose this happens because BINARY is not listed in "unreserved_keyword" neither in "col_name_keyword parser" parser rules, but listed in "type_func_name_keyword" instead. -- With best wishes, Pavel mailto:pavel@gf.microolap.com