Re: ARRAY[] with \'s is broken? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ARRAY[] with \'s is broken?
Date
Msg-id 563.1116351323@sss.pgh.pa.us
Whole thread Raw
In response to Re: ARRAY[] with \'s is broken?  (Rod Taylor <pg@rbt.ca>)
Responses Re: ARRAY[] with \'s is broken?
List pgsql-hackers
Rod Taylor <pg@rbt.ca> writes:
> On Tue, 2005-05-17 at 13:18 -0400, Andrew Dunstan wrote:
>> I don't see anything broken. V 7.4.8 shows the same:

> How the heck do you store a single backslash in an text array?

You just did.  array_out doubles the backslashes again, though.

regression=# select ARRAY['\\a']; array
---------{"\\a"}
(1 row)

regression=# select (ARRAY['\\a'])[1];array
-------\a
(1 row)
        regards, tom lane


pgsql-hackers by date:

Previous
From: Brendan Jurd
Date:
Subject: Re: Learning curves and such (was Re: pgFoundry)
Next
From: "Marc G. Fournier"
Date:
Subject: Re: Learning curves and such (was Re: pgFoundry)