BUG #13486: How can I sort unnest results?

From: longzou(at)hotmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #13486: How can I sort unnest results?
Date: 2015-07-04 01:05:45
Message-ID: 20150704010545.1190.24623@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 13486
Logged by: Long Zou
Email address: longzou(at)hotmail(dot)com
PostgreSQL version: 9.4.4
Operating system: Mac OS X
Description:

I have a query that using the unnest function. But I don't know how to sort
the result.

For example:
select * from unnest(array[1,2,3,4,5,6], array[10,8,3,6,8,2], array['ab',
'dd','','dd','st']);
The result will have three columns and those name are 'unnest'. So, if I use
unnest as the order by cause, it will raise an error:
ERROR: ORDER BY "unnest" is ambiguous.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Noah Misch 2015-07-04 01:37:54 Re: contribcheck and modulescheck of MSVC's vcregress.pl cannot work independently
Previous Message Bailu Ding 2015-07-03 20:57:45 Re: BUG #13481: No config folder upon installation