bug in COPY - Mailing list pgsql-hackers

From nconway@klamath.dyndns.org (Neil Conway)
Subject bug in COPY
Date
Msg-id 20020724175939.GA15950@klamath.dyndns.org
Whole thread Raw
Responses Re: bug in COPY  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
This behavior doesn't look right:

nconway=# create table foo (a int default 50, b int default 100);
CREATE TABLE
nconway=# copy foo from stdin;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
>> 
>> \.
nconway=# select * from foo;a | b 
---+---0 |  
(1 row)

(The first line of the COPY input is blank: i.e. just a newline)

The problem appears to be in both 7.2.1 and current CVS.

Cheers,

Neil

-- 
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC


pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Proposal: anonymous composite types for Table Functions (aka SRFs)
Next
From: Tom Lane
Date:
Subject: Re: bug in COPY