Re: inserting/updating a field with the contents of a text file - Mailing list pgsql-novice

From Richard Broersma Jr
Subject Re: inserting/updating a field with the contents of a text file
Date
Msg-id 61899.71997.qm@web31801.mail.mud.yahoo.com
Whole thread Raw
In response to Re: inserting/updating a field with the contents of a text file  ("Phillip Smith" <phillip.smith@weatherbeeta.com.au>)
Responses Re: inserting/updating a field with the contents of a text file
List 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 by date:

Previous
From: Richard Broersma Jr
Date:
Subject: Re: inserting/updating a field with the contents of a text file
Next
From: Richard Broersma Jr
Date:
Subject: Re: inserting/updating a field with the contents of a text file