Skip site navigation (1) Skip section navigation (2)

Re: Windowing Function Patch Review -> NTH_VALUE

From: "Hitoshi Harada" <umi(dot)tanuki(at)gmail(dot)com>
To: "David Rowley" <dgrowley(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Windowing Function Patch Review -> NTH_VALUE
Date: 2008-11-12 09:46:31
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
2008/11/12 1:09 Hitoshi Harada <umi(dot)tanuki(at)gmail(dot)com>:
> So obviously nth_value(expr, 0) causes error and nth_value(expr, 1)
> returns the first row. I will update my patch soon.

Fixed these issues:
- ntile() value check
- nth_value() value check and behavior change

Also, I found a bug that is fixed in this release:

SELECT sum(salary) OVER w1, count(*) OVER w2 FROM empsalary WINDOW w1
AS (ORDER BY salary), w2 AS (ORDER BY salary);

The identical windows named differently were not processed
appropriately. It works now.


Hitoshi Harada

Attachment: window_functions.patch.20081112-1.gz
Description: application/x-gzip (47.2 KB)

In response to


pgsql-hackers by date

Next:From: Hitoshi HaradaDate: 2008-11-12 09:47:12
Subject: Re: Windowing Function Patch Review -> NTH_VALUE
Previous:From: Martijn van OosterhoutDate: 2008-11-12 07:18:57
Subject: Re: Block-level CRC checks

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group