Re: inserting/updating a field with the contents of a text file

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: inserting/updating a field with the contents of a text file
Дата
Msg-id 61899.71997.qm@web31801.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Re: inserting/updating a field with the contents of a text file  ("Phillip Smith" <phillip.smith@weatherbeeta.com.au>)
Ответы Re: inserting/updating a field with the contents of a text file  (Richard Broersma Jr <rabroersma@yahoo.com>)
Список pgsql-novice
--- Phillip Smith <phillip.smith@weatherbeeta.com.au> wrote:
> Backslash ('\') will also cause problems. Replace them with double-backslash
> ('\\')

You can turn alter postgresql behavior towards backslash using standard_conforming_strings.

SET standard_conforming_strings = on;

http://www.postgresql.org/docs/8.2/static/runtime-config-compatible.html#RUNTIME-CONFIG-COMPATIBLE-VERSION

This way backslashes are treated as any other character.

when you are done:

SET standard_conforming_strings = off;

Regards,
Richard Broersma Jr.

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

Предыдущее
От: Richard Broersma Jr
Дата:
Сообщение: Re: inserting/updating a field with the contents of a text file
Следующее
От: Richard Broersma Jr
Дата:
Сообщение: Re: inserting/updating a field with the contents of a text file