Converting each item in array to a query result row - Mailing list pgsql-general

From Postgres User
Subject Converting each item in array to a query result row
Date
Msg-id b88c3460905290021o6870bb46tec88ced0c40643d9@mail.gmail.com
Whole thread Raw
Responses Re: Converting each item in array to a query result row
List pgsql-general
Hi,

I'd writing a query against a function (pg_proc) that contains 2
fields of an array type.  Ideally, I'd like to select 1 row from the
table, but return a query row for each item in the array.

For example, if one row contains the array {"a", "b", "c"}
I'd like the query to return 3 rows, one for each of these elements.

Any idea if this is possible?

Thanks.

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: What is the right way to deal with a table with rows that are not in a random order?
Next
From: artacus@comcast.net
Date:
Subject: Re: Converting each item in array to a query result row