Re: strange evaluation Window function and SRF functions?

From: Thom Brown <thom(at)linux(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: strange evaluation Window function and SRF functions?
Date: 2012-07-30 16:33:33
Message-ID: CAA-aLv5JQqzOgPrxR0JTp-nctw6jpBKzsKGc+TnqKOpN2mjVDg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 30 July 2012 17:19, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:

> Hello
>
> I seen nice trick based on window function
> http://stackoverflow.com/questions/11700930/how-can-i-trim-a-text-array-in-postgresql
>
> but isn't it example of wrong evaluation? Result of row_number is not
> correct
>

Looks right to me. I guess the way to get the row_number they're after out
of the result set would involve changing OVER () to OVER (ORDER BY
unnest(myTextArrayColumn))

--
Thom

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Johnston 2012-07-30 16:37:18 Re: strange evaluation Window function and SRF functions?
Previous Message Tom Lane 2012-07-30 16:31:00 Re: strange evaluation Window function and SRF functions?