Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 7904DB5DBC0 for ; Tue, 27 Sep 2011 23:06:03 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 25419-05 for ; Wed, 28 Sep 2011 02:05:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id D29CBB5D801 for ; Tue, 27 Sep 2011 23:05:56 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p8S25uBx003901; Tue, 27 Sep 2011 22:05:56 -0400 (EDT) To: "Itagaki Takahiro" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6227: No arguments for COPY OIDS and HEADER In-reply-to: <201109270610.p8R6AkMI004142@wwwmaster.postgresql.org> References: <201109270610.p8R6AkMI004142@wwwmaster.postgresql.org> Comments: In-reply-to "Itagaki Takahiro" message dated "Tue, 27 Sep 2011 06:10:46 +0000" Date: Tue, 27 Sep 2011 22:05:56 -0400 Message-ID: <3900.1317175556@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/207 X-Sequence-Number: 31224 "Itagaki Takahiro" writes: > Our documentation says OIDS and HEADER options in COPY command take [ > boolean ] arguments, but actually they don't accept any arguments. We can > only set them to TRUE by specifying their names. Um, these examples all work fine for me in HEAD: regression=# copy tenk1 to '/dev/null' with (oids); COPY 10000 regression=# copy tenk1 to '/dev/null' with (oids true); COPY 10000 regression=# copy tenk1 to '/dev/null' with (oids false); COPY 10000 regression=# copy tenk1 to '/dev/null' with (format csv, header); COPY 10000 regression=# copy tenk1 to '/dev/null' with (format csv, header true); COPY 10000 regression=# copy tenk1 to '/dev/null' with (format csv, header false); COPY 10000 Also, regression=# copy tenk1 to '/dev/null' with (oids fals); ERROR: oids requires a Boolean value so it is checking the argument. regards, tom lane