Re: COPY syntax - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: COPY syntax
Date
Msg-id 200210171857.g9HIvCi24524@candle.pha.pa.us
Whole thread Raw
In response to Re: COPY syntax  (Lee Kindness <lkindness@csl.co.uk>)
List pgsql-hackers
Lee Kindness wrote:
> Bruce Momjian writes:
>  > Peter Eisentraut wrote:
>  > > Bruce Momjian writes:
>  > > > > COPY table TO STDOUT WITH BINARY OIDS;
>  > > > > Shouldn't the "binary", being an adjective, be attached to something?
>  > > > Uh, it is attached to WITH?
>  > > Attached to a noun phrase, like "mode" or "output".  Note that all the
>  > > other things the typically follow WITH in any command are nouns.
>  > Should we add an optional MODE after BINARY?
> 
> Are you serious? You'd like to mess up the COPY syntax even further
> for a purely grammatical reason!
> 
> A good few months ago I put formward an idea to change (well migrate
> really) to "COPY TABLE" rather than "COPY" - this would allow a well
> designed and thoughtout syntax for the new version while retaining old
> compatibility.

I don't like the added MODE either, but Peter doesn't seem to like
BINARY alone, though it seems fine to me.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: "COPY FROM" recognize \xDD sequence - addition to
Next
From: Peter Eisentraut
Date:
Subject: Re: orderRules() now a bad idea?