pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: depesz@depesz.com
Cc: kurt.lidl@cello.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7836: COPY command does not honor 'FORMAT' option
Date: Tue, 10 Sep 2013 16:48:32 -0400
Message-ID: <20130910204832.GD16378@momjian.us> (raw)
In-Reply-To: <6032.1359499936@sss.pgh.pa.us>
References: <E1U0Fmv-0004Nq-ML@wrigleys.postgresql.org>
	<20130129201905.GA30627@depesz.com>
	<CAMkU=1xYRrQDh=Mj455BzFvn+j25J-XVtUFsEua29iSpQLVZvg@mail.gmail.com>
	<6032.1359499936@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Tue, Jan 29, 2013 at 05:52:16PM -0500, Tom Lane wrote:
> Jeff Janes <jeff.janes@gmail.com> 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 <literal>binary</literal> 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  <bruce@momjian.us>        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



view thread (6+ messages)

Message-ID: <20130910204832.GD16378@momjian.us>
Permalink:  ../20130910204832.GD16378@momjian.us/
Also on:    postgresql.org/message-id/20130910204832.GD16378@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, tgl@sss.pgh.pa.us, jeff.janes@gmail.com, depesz@depesz.com, kurt.lidl@cello.com
  Subject: Re: BUG #7836: COPY command does not honor 'FORMAT' option
  In-Reply-To: <20130910204832.GD16378@momjian.us>
  References: <E1U0Fmv-0004Nq-ML@wrigleys.postgresql.org> <20130129201905.GA30627@depesz.com> <CAMkU=1xYRrQDh=Mj455BzFvn+j25J-XVtUFsEua29iSpQLVZvg@mail.gmail.com> <6032.1359499936@sss.pgh.pa.us> <20130910204832.GD16378@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox