Unix Technical Forum

psql \copy warning

This is a discussion on psql \copy warning within the pgsql Hackers forums, part of the PostgreSQL category; --> I use the \copy command from psql to load data into postgres. I was fiddling with setting up a ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2008, 02:36 AM
Jeremy Drake
 
Posts: n/a
Default psql \copy warning

I use the \copy command from psql to load data into postgres. I was
fiddling with setting up a database on a HEAD build, and I got the
following new warning

testy=# \copy episodes from 'episodes.data' with delimiter as '\t'
WARNING: nonstandard use of escape in a string literal
LINE 1: COPY episodes FROM STDIN USING DELIMITERS '\t'
^
HINT: Use the escape string syntax for escapes, e.g., E'\r\n'.


I figured that this is the new standards conforming strings feature, and I
guess I should get used to the new escape syntax. So I tried the hint

testy=# \copy episodes FROM 'episodes.data' with delimiter as E'\t'
\copy: parse error at "'\t'"

So is it just me, or is this decidedly non-helpful? I assume someone
missed this place for the new syntax tweaks?



--
There you go man,
Keep as cool as you can.
It riles them to believe that you perceive the web they weave.
Keep on being free!

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:57 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com