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

From: Rod Taylor <pg(at)rbt(dot)ca>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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:46:11
Message-ID: 1116351971.696.195.camel@home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > How the heck do you store a single backslash in an text array?
>
> ... array_out doubles the backslashes again, though.

That explains how I got confused.

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2005-05-17 17:49:36 Re: ARRAY[] with \'s is broken?
Previous Message Marc G. Fournier 2005-05-17 17:45:00 Re: Learning curves and such (was Re: pgFoundry)