Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UIKOD-0006L0-4M for pgsql-docs@arkaria.postgresql.org; Wed, 20 Mar 2013 14:53:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UIKOC-0005vo-Bo for pgsql-docs@arkaria.postgresql.org; Wed, 20 Mar 2013 14:53:16 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UIKOB-0005vj-Qy for pgsql-docs@postgreSQL.org; Wed, 20 Mar 2013 14:53:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UIKO7-0006x6-OV for pgsql-docs@postgreSQL.org; Wed, 20 Mar 2013 14:53:15 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r2KErAa8002773; Wed, 20 Mar 2013 10:53:10 -0400 (EDT) From: Tom Lane To: Mario Duhanic cc: pgsql-docs@postgreSQL.org Subject: Re: Underscorces in copy-documentation (9.0 and higher) In-reply-to: References: <1553.1363788349@sss.pgh.pa.us> Comments: In-reply-to Mario Duhanic message dated "Wed, 20 Mar 2013 15:49:14 +0100" Date: Wed, 20 Mar 2013 10:53:10 -0400 Message-ID: <2772.1363791190@sss.pgh.pa.us> X-Pg-Spam-Score: -4.4 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org Mario Duhanic writes: > 2013/3/20 Tom Lane : >> Huh? The references to FORCE_QUOTE look correct to me. The syntax >> doesn't support multi-word option names, so it has to be like that >> (or else run the words together, which doesn't sound like an >> improvement). > Thanks, Tom, for your quick response. > Maybe this is just a miscommunication, sorry for that then (i.e. I > misunderstood the documentation here). > (Stupid) example for the problem: > "COPY (SELECT aggfnoid, aggtransfn from pg_aggregate) TO STDOUT WITH > FORCE QUOTE * DELIMITER ',' CSV HEADER;" > will run, a FORCE_QUOTE or FORCEQUOTE won't As Ian notes, that's the old syntax with a hard-wired option set. The lack of parentheses after WITH is the difference. regards, tom lane -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs