Re: Splitting text column to multiple rows - Mailing list pgsql-general

From Tom Lane
Subject Re: Splitting text column to multiple rows
Date
Msg-id 13151.1269874834@sss.pgh.pa.us
Whole thread Raw
In response to Re: Splitting text column to multiple rows  ("Andrus" <kobruleht2@hot.ee>)
Responses Re: Splitting text column to multiple rows  ("Andrus" <kobruleht2@hot.ee>)
Re: Splitting text column to multiple rows  ("Andrus" <kobruleht2@hot.ee>)
List pgsql-general
"Andrus" <kobruleht2@hot.ee> writes:
> Pavel,
>> pavel@postgres:5481=# select unnest(string_to_array('23,2,3,4,5',','));
>> unnest
>> --------
>> 23
>> 2
>> 3
>> 4
>> (4 rows)

> Result is wrong: it must contain 5 rows.

Surely that's a copy-and-paste mistake?  I get 5 rows from this example.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: How to give security to pg_catalogs
Next
From: "Andrus"
Date:
Subject: Re: Splitting text column to multiple rows