pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Euler Taveira de Oliveira <euler@timbira.com>
To: pedro mg <pedro@tquadrado.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6017: COPY from CSV file, WITH CSV HEADER fields order not respected
Date: Mon, 09 May 2011 21:19:53 -0300
Message-ID: <4DC884A9.9030008@timbira.com> (raw)
In-Reply-To: <201105091807.p49I7P3F047244@wwwmaster.postgresql.org>
References: <201105091807.p49I7P3F047244@wwwmaster.postgresql.org>

Em 09-05-2011 15:07, pedro mg escreveu:
> # COPY test1 FROM '/tmp/test1.csv' WITH CSV HEADER
>
Why don't you specify the columns?

COPY test1 (key, c2, c1) FROM '/tmp/test1.csv' WITH CSV HEADER


-- 
   Euler Taveira de Oliveira - Timbira       http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento



view thread (2+ messages)

Message-ID: <4DC884A9.9030008@timbira.com>
Permalink:  ../4DC884A9.9030008@timbira.com/
Also on:    postgresql.org/message-id/4DC884A9.9030008@timbira.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: euler@timbira.com, pedro@tquadrado.com
  Subject: Re: BUG #6017: COPY from CSV file, WITH CSV HEADER fields order not respected
  In-Reply-To: <4DC884A9.9030008@timbira.com>
  References: <201105091807.p49I7P3F047244@wwwmaster.postgresql.org> <4DC884A9.9030008@timbira.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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