Re: ARRAY[] with \'s is broken?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rod Taylor <pg(at)rbt(dot)ca>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ARRAY[] with \'s is broken?
Date: 2005-05-17 17:35:23
Message-ID: 563.1116351323@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rod Taylor <pg(at)rbt(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2005-05-17 17:45:00 Re: Learning curves and such (was Re: pgFoundry)
Previous Message Brendan Jurd 2005-05-17 17:31:24 Re: Learning curves and such (was Re: pgFoundry)