Re: string_to_array has to be stable?

From: Thom Brown <thombrown(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: string_to_array has to be stable?
Date: 2010-07-20 09:40:40
Message-ID: AANLkTiklILP4JuVSamm6cIlIE3ib4-fMyZdXIjE48YIm@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 20 July 2010 10:31, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
> Hello
>
> I am working on to_array, to_string functions and I am looking on
> string_to_array function. I am surprised so this function is marked as
> immutable
>
> postgres=# select array_to_string(array[current_date],',');
>  array_to_string
> -----------------
>  2010-07-20
> (1 row)
>
> postgres=# set datestyle to German ;
> SET
> postgres=# select array_to_string(array[current_date],',');
>  array_to_string
> -----------------
>  20.07.2010
> (1 row)
>
> it is probably wrong
>
> Regards
>
> Pavel Stehule
>

Yeah, that looks wrong.

Thom

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Artur Dabrowski 2010-07-20 09:41:25 Query results differ depending on operating system (using GIN)
Previous Message Pavel Stehule 2010-07-20 09:40:18 Re: sql/med review - problems with patching