pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6227: No arguments for COPY OIDS and HEADER
3+ messages / 2 participants
[nested] [flat]
* BUG #6227: No arguments for COPY OIDS and HEADER
@ 2011-09-27 06:10 Itagaki Takahiro <itagaki.takahiro@gmail.com>
2011-09-28 02:05 ` Re: BUG #6227: No arguments for COPY OIDS and HEADER Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 3+ messages in thread
From: Itagaki Takahiro @ 2011-09-27 06:10 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged online:
Bug reference: 6227
Logged by: Itagaki Takahiro
Email address: itagaki.takahiro@gmail.com
PostgreSQL version: 9.1 and all
Operating system: N/A
Description: No arguments for COPY OIDS and HEADER
Details:
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.
http://www.postgresql.org/docs/9.1/static/sql-copy.html
- OIDS [ boolean ]
- HEADER [ boolean ]
[ <replaceable class="parameter">boolean</replaceable> ]
in copy.sgml seems a junk.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #6227: No arguments for COPY OIDS and HEADER
2011-09-27 06:10 BUG #6227: No arguments for COPY OIDS and HEADER Itagaki Takahiro <itagaki.takahiro@gmail.com>
@ 2011-09-28 02:05 ` Tom Lane <tgl@sss.pgh.pa.us>
2011-09-28 03:06 ` Re: BUG #6227: No arguments for COPY OIDS and HEADER Itagaki Takahiro <itagaki.takahiro@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2011-09-28 02:05 UTC (permalink / raw)
To: Itagaki Takahiro <itagaki.takahiro@gmail.com>; +Cc: pgsql-bugs
"Itagaki Takahiro" <itagaki.takahiro@gmail.com> 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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #6227: No arguments for COPY OIDS and HEADER
2011-09-27 06:10 BUG #6227: No arguments for COPY OIDS and HEADER Itagaki Takahiro <itagaki.takahiro@gmail.com>
2011-09-28 02:05 ` Re: BUG #6227: No arguments for COPY OIDS and HEADER Tom Lane <tgl@sss.pgh.pa.us>
@ 2011-09-28 03:06 ` Itagaki Takahiro <itagaki.takahiro@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Itagaki Takahiro @ 2011-09-28 03:06 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs
On Wed, Sep 28, 2011 at 11:05, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Itagaki Takahiro" <itagaki.takahiro@gmail.com> 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:
Ah, I was wrong.
The new COPY syntax with parentheses accepts boolean values:
OK: COPY tbl FROM '/file' WITH (OIDS true)
NG: COPY tbl FROM '/file' WITH OIDS true
So, no bugs in the docs. Sorry.
--
Itagaki Takahiro
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2011-09-28 03:06 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-09-27 06:10 BUG #6227: No arguments for COPY OIDS and HEADER Itagaki Takahiro <itagaki.takahiro@gmail.com>
2011-09-28 02:05 ` Tom Lane <tgl@sss.pgh.pa.us>
2011-09-28 03:06 ` Itagaki Takahiro <itagaki.takahiro@gmail.com>
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