Question about array_to_string()'s behavior and the behavior mightbe changed in the future or not - Mailing list pgsql-general

From Egashira, Yusuke
Subject Question about array_to_string()'s behavior and the behavior mightbe changed in the future or not
Date
Msg-id 848B1649C8A6274AA527C4472CA11EDD5FA87F88@G01JPEXMBYT02
Whole thread Raw
Responses Re: Question about array_to_string()'s behavior and the behavior might be changed in the future or not
List pgsql-general
Hi, 

I have a question about array_to_string(). 
I think array_to_string() concatenates always array elements from the "beginning" of the array elements and this rule
willnot be changed on the future minor releases. 
 
Is my understanding correct? 

For example, I understand that array_to_string() "never" output like following result now and in the future, is my
understandingcorrect? 
 

[Example] -> array_to_string(ARRAY[1, 2, 3, NULL, 5], ',', '*')
[Result]  -> 2,1,3,*,5

Currently I use PostgreSQL 9.5. 

Regards,

--
Yusuke, Egashira




pgsql-general by date:

Previous
From: Brent Wood
Date:
Subject: Re: Can anyone please provide me list of customers using postgreSQL
Next
From: Andrew Gierth
Date:
Subject: Re: Question about array_to_string()'s behavior and the behavior might be changed in the future or not