Re: COPY is not working - Mailing list pgsql-hackers

From Takahiro Itagaki
Subject Re: COPY is not working
Date
Msg-id 20100430145652.94D7.52131E4D@oss.ntt.co.jp
Whole thread Raw
In response to COPY is not working  (Jaime Casanova <jcasanov@systemguards.com.ec>)
Responses Re: COPY is not working  (Jaime Casanova <jcasanov@systemguards.com.ec>)
List pgsql-hackers
Jaime Casanova <jcasanov@systemguards.com.ec> wrote:

> COPY is not working on latest HEAD?
> """
> regression=# select * from a;
>  aa
> ----
>  32
>  56
> (2 rows)
> 
> regression=# COPY a TO '/tmp/copy_test';
> COPY 0
> """
> 
> -- 

Please send the actual test pattern and your environment information
to reproduce the misbehavior. It works fine on my machine.

regression=# CREATE TABLE a (aa integer);
CREATE TABLE
regression=# INSERT INTO a VALUES(32), (56);
INSERT 0 2
regression=# select * from a;aa
----3256
(2 rows)

regression=# COPY a TO '/tmp/copy_test';
COPY 2
regression=# \! cat /tmp/copy_test
32
56

$ uname -a
Linux xxx 2.6.29.4-167.fc11.x86_64 #1 SMP Wed May 27 17:27:08 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
$ postgres --version
postgres (PostgreSQL) 9.0beta1

Regards,
---
Takahiro Itagaki
NTT Open Source Software Center




pgsql-hackers by date:

Previous
From: Jaime Casanova
Date:
Subject: COPY is not working
Next
From: Jaime Casanova
Date:
Subject: Re: COPY is not working