pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: 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, 29 Jan 2013 17:52:16 -0500
Message-ID: <6032.1359499936@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMkU=1xYRrQDh=Mj455BzFvn+j25J-XVtUFsEua29iSpQLVZvg@mail.gmail.com>
References: <E1U0Fmv-0004Nq-ML@wrigleys.postgresql.org>
	<20130129201905.GA30627@depesz.com>
	<CAMkU=1xYRrQDh=Mj455BzFvn+j25J-XVtUFsEua29iSpQLVZvg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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.

			regards, tom lane


-- 
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)  latest in thread

Message-ID: <6032.1359499936@sss.pgh.pa.us>
Permalink:  ../6032.1359499936@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6032.1359499936@sss.pgh.pa.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: 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: <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>

* 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