Re: Newbie trying to load table with data... - Mailing list pgsql-novice

From Tom Lane
Subject Re: Newbie trying to load table with data...
Date
Msg-id 1217.1029273089@sss.pgh.pa.us
Whole thread Raw
In response to Newbie trying to load table with data...  (Kurt Gunderson <kgunders@cbnlottery.com>)
List pgsql-novice
Kurt Gunderson <kgunders@cbnlottery.com> writes:
> test1=> \copy "k_device" from "/home/kurt/data/sql.device.d" using
> delimiters '|'

> "/home/kurt/data/sql.device.d": No such file or directory

Almost there.  Try it with single quotes or no quotes around the
filename --- double quotes are for SQL identifiers, which the filename
is not.  I tried

test72=# \copy "z" to "barf" using delimiters '|'

which worked, but what I got was

-rw-r--r--   1 tgl        users            0 Aug 13 17:08 "barf"


            regards, tom lane

pgsql-novice by date:

Previous
From: "Chad Thompson"
Date:
Subject: Re: I need to know password for postgres
Next
From: Oliver Elphick
Date:
Subject: Re: Newbie trying to load table with data...