Re: how to get pg_dump in postgesql 8.2 to create inserts with E'....' for back slashes

From: Jim Nasby <decibel(at)decibel(dot)org>
To: mike lane <mike(dot)lane(at)houndline(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: how to get pg_dump in postgesql 8.2 to create inserts with E'....' for back slashes
Date: 2007-07-09 22:22:38
Message-ID: FF782F2A-8AD0-42D6-9AE7-2229896CAFBE@decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Jul 5, 2007, at 5:33 AM, mike lane wrote:
> I have been trying to get postgresql 8.2 to create sql insert
> commands which,
> for a field of type byteA with back-slashes, are in the form E'xxx
> \yy\zz'
>
> I assume that the same cannot be done with postgresql versions 7.
>
> I have found how to turn off the warning if the insert used a back-
> slash as an
> escape character (ie. in the form 'xxx\\yy\\zz').
>
> I am in the process of changing from version 7.4 to 8.2 and from
> what I
> understand the correct way to have the insert is without the escape
> back-slash.

Use the 8.2 version of pg_dump and you should be fine, at least on
escapes.
--
Jim Nasby jim(at)nasby(dot)net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Ashish Karalkar 2007-07-10 05:22:35 Re: Windows XP Install Problem
Previous Message operationsengineer1 2007-07-09 18:55:34 Windows XP Install Problem