Re: Frustration with \copy

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ralph Smith <rsmith(at)10kinfo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Frustration with \copy
Date: 2010-09-10 18:14:09
Message-ID: 27488.1284142449@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ralph Smith <rsmith(at)10kinfo(dot)com> writes:
> I have a one column .txt file on Ubuntu that I'm trying to upload, and ....
> \copy new_coupons '/home/rsmith/testfile.txt'

I think you need
\copy new_coupons from '...'

Like it says, it's supposed to match the backend syntax, modulo needing
a starting backslash and no ending semicolon.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-09-10 18:18:10 Re: sql DO in rule 9.0rc1
Previous Message Joshua D. Drake 2010-09-10 17:44:17 Re: sql DO in rule 9.0rc1