Escaping in COPY

Поиск
Список
Период
Сортировка
От Jeroen T. Vermeulen
Тема Escaping in COPY
Дата
Msg-id 20020605181626.GB2113@bulletproof
обсуждение исходный текст
Список pgsql-interfaces
How exactly does one escape tabs, newlines etc. when using COPY?  

I remember reading somewhere that one just prefixes a backslash to them
before passing them to PQputline().  And indeed, that seems to work fine.

But when the data is retrieved using another COPY and PQgetline(), I
find the tabs are escaped as '\t'.  I looked around the website and the
mailing list archives, but found nothing on this subject.

Can anyone tell me the definitive place to look?


TIA,

Jeroen




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

Предыдущее
От: Vicki Brown
Дата:
Сообщение: Re: pg_dump.o(.text+0xf82): undefined reference to
Следующее
От: Gunther Schadow
Дата:
Сообщение: Re: Escaping in COPY