Frustration with \copy

Поиск
Список
Период
Сортировка
От Ralph Smith
Тема Frustration with \copy
Дата
Msg-id 4C8A6A20.3000907@10kinfo.com
обсуждение исходный текст
Ответы Re: Frustration with \copy  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Frustration with \copy  (David Fetter <david@fetter.org>)
Список pgsql-general
As someone famous once said:
	The documentation I've found on \copy says to see the docs on copy ;)
It's *supposed* to match the backend syntax, but seems a few bricks shy of a load at the moment.  Anyone feel like fixing it?  Seeparse_slash_copy() in src/bin/psql/copy.c.

That was a while ago, but it seems to still hold true.
I'm assuming it HAD to work (ca v7.4), if one just had the syntax laid out right.

I have a one column .txt file on Ubuntu that I'm trying to upload, and ....\copy new_coupons '/home/rsmith/testfile.txt' \copy: parse error at "'/home/rsmith/testfile"

I've looked for caveats (that I didn't expect to find) WRT the EOL delimiter.
I also apostrophed the text when it didn't need it.

In my very recent unemployed state I boned-up-on and did a little consulting on
Oracle and MySQL, and the others did work.
Now I remember why I had dark clouds associated with this command.

If I have to I can build a series of INSERT statements.

Yes, we are planning to upgrade to 8.3, but now I'm stuck w/ 7.4.
Should I just INSERT?

Thanks!
Ralph

В списке pgsql-general по дате отправления:

Предыдущее
От: "Gauthier, Dave"
Дата:
Сообщение: Re: regexp on null
Следующее
От: Richard Broersma
Дата:
Сообщение: Re: regexp on null