Re: \copy command: how to define a tab character as the delimiter

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: \copy command: how to define a tab character as the delimiter
Date: 2010-03-09 17:21:57
Message-ID: 22140.1268155317@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thomas Kellerer <spam_eater(at)gmx(dot)net> writes:
> \copy foo (foo, bar) from foobar.txt delimiter as '\t' csv header

> So how can I specify a tab character if I also need to specify that my file has a header line?

Type an actual tab.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Coleman 2010-03-09 17:23:46 question on 8.4.2 build postgres C functions
Previous Message Greg Smith 2010-03-09 16:58:58 Re: kernel version impact on PostgreSQL performance