Re: Strange array_to_table / unnest result

From: Johann Spies <johann(dot)spies(at)gmail(dot)com>
To:
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Strange array_to_table / unnest result
Date: 2016-07-18 07:52:38
Message-ID: CAGZ55DSi9ybDE_-oLz3zF78x93uNn-uQojLJj0xG+OTVt83_iQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Unnest is evaluated before LIMIT
> You need to use derived table
>
> postgres=# select unnest(a) from (select a from x limit 1) si
>

Thank you!

Regards
Johann

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Paquier 2016-07-18 09:09:55 Re: Re: ERROR: missing chunk number 0 for toast value while using logical decoder.\
Previous Message sudalai 2016-07-18 07:31:53 Re: ERROR: missing chunk number 0 for toast value while using logical decoder.\