Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VJUrc-0005HG-2X for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Sep 2013 20:48:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VJUrb-0008TN-IK for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Sep 2013 20:48:43 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VJUrZ-0008TC-IC for pgsql-bugs@postgresql.org; Tue, 10 Sep 2013 20:48:41 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VJUrW-00031i-QB for pgsql-bugs@postgresql.org; Tue, 10 Sep 2013 20:48:40 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1VJUrQ-0007o0-K9; Tue, 10 Sep 2013 16:48:32 -0400 Date: Tue, 10 Sep 2013 16:48:32 -0400 From: Bruce Momjian To: Tom Lane Cc: Jeff Janes , depesz@depesz.com, kurt.lidl@cello.com, pgsql-bugs@postgresql.org Subject: Re: BUG #7836: COPY command does not honor 'FORMAT' option Message-ID: <20130910204832.GD16378@momjian.us> References: <20130129201905.GA30627@depesz.com> <6032.1359499936@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6032.1359499936@sss.pgh.pa.us> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Tue, Jan 29, 2013 at 05:52:16PM -0500, Tom Lane wrote: > Jeff Janes writes: > > I figured out the need for the parenthesis by reading the docs. The > > need to also quote 'binary' really took me by surprise, especially as > > the other two formats don't need to be quoted. I assume the reason > > for this is the level of reservedness of the various words in bison. > > Yeah, BINARY is a type_func_name_keyword and hence not covered by the > copy_generic_opt_arg production. > > > But is this a doc bug? Should binary be shown > > quoted if it needs to be used quote? Or at least maybe the Example > > section could include an example of the use of FORMAT. > > Probably better to see if we can fix the grammar instead of documenting > a klugy workaround. I'm not sure we can easily allow fully-reserved > words there, but type_func_name_keyword might work. FYI, the need for single-quotes around 'binary' was removed with a patch and backpatched. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs