Skip site navigation (1) Skip section navigation (2)

string_to_array has to be stable?

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: string_to_array has to be stable?
Date: 2010-07-20 09:31:23
Message-ID: AANLkTik8v7O9QR9jjHNVh62h-COC1B0FDUNmEYMdtKjR@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
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

Responses

pgsql-hackers by date

Next:From: Pavel StehuleDate: 2010-07-20 09:40:18
Subject: Re: sql/med review - problems with patching
Previous:From: Oleg BartunovDate: 2010-07-20 09:09:06
Subject: Re: Incorrect FTS result with GIN index

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group