Backslashitis

From: hamann(dot)w(at)t-online(dot)de
To: pgsql-general(at)postgresql(dot)org
Subject: Backslashitis
Date: 2012-06-14 08:17:18
Message-ID: 4FD99E0E.mailGHT1HLL44@amadeus3.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I have a column declared as array of text. I can get a single backslash into one of the array elements by
update ... set mycol[1] = E'blah \\here'
If I try to update the whole array
update ... set mycol = E'{"blah \\here"}'
the backslash is missing. I can get two backslashes there.
Is there a good way to solve the problem, other than rewriting my update script to do array updates one element at a time?

Regards
Wolfgang Hamann

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raghavendra 2012-06-14 08:31:33 Re: Backslashitis
Previous Message Albe Laurenz 2012-06-14 07:37:28 Re: Daisy chaining replication slaves ?