Re: [HACKERS] Window Functions patch v06

2008-10-13 Thread Tom Lane
"Hitoshi Harada" <[EMAIL PROTECTED]> writes: > I agree I need to work on that. Also from the spec, "RESPECT NULLS / > IGNORE NULLS" may be specified but not supported yet. This syntax > specification is out of the postgres general function call so I wonder > if those functions are treated specially

Re: [HACKERS] Window Functions patch v06

2008-10-13 Thread Hitoshi Harada
2008/10/14 David Rowley <[EMAIL PROTECTED]>: > Hitoshi Harada wrote: >>I made up my mind to scratch former window functions and redesigned >>completely new execution model, based on the discussion with Heikki. >>Attached is the v06 against HEAD today. >>http://umitanuki.net/pgsql/wfv06/design.html

Re: [HACKERS] Window Functions patch v06

2008-10-13 Thread David Rowley
Hitoshi Harada wrote: >I made up my mind to scratch former window functions and redesigned >completely new execution model, based on the discussion with Heikki. >Attached is the v06 against HEAD today. >http://umitanuki.net/pgsql/wfv06/design.html First off, fantastic work! In my eyes this and WI

Re: [HACKERS] Window Functions patch v06

2008-10-12 Thread Hitoshi Harada
I confirmed this on Oracle: select last_value(id) over (order by id) as last_id, id from foo; LAST_ID ID --- -- 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 So when you specify ORDER BY clause on window definition, the frame a

Re: [HACKERS] Window Functions patch v06

2008-10-11 Thread Ian Caulfield
2008/10/11 Hitoshi Harada <[EMAIL PROTECTED]>: > I am drunk. I forgot cc to -hackers. The talk between me and Ian was like > that. > > 2008/10/12 Hitoshi Harada <[EMAIL PROTECTED]>: >> 2008/10/12 Ian Caulfield <[EMAIL PROTECTED]>: >>> 2008/10/11 Hitoshi Harada <[EMAIL PROTECTED]>: 2008/10/12

Re: [HACKERS] Window Functions patch v06

2008-10-11 Thread Hitoshi Harada
I am drunk. I forgot cc to -hackers. The talk between me and Ian was like that. 2008/10/12 Hitoshi Harada <[EMAIL PROTECTED]>: > 2008/10/12 Ian Caulfield <[EMAIL PROTECTED]>: >> 2008/10/11 Hitoshi Harada <[EMAIL PROTECTED]>: >>> 2008/10/12 Ian Caulfield <[EMAIL PROTECTED]>: 2008/10/11 Hitoshi

Re: [HACKERS] Window Functions patch v06

2008-10-11 Thread Ian Caulfield
2008/10/11 Hitoshi Harada <[EMAIL PROTECTED]> > > I'm afraid the patch was too huge, trying to send it again without > attachment... > > I made up my mind to scratch former window functions and redesigned > completely new execution model, based on the discussion with Heikki. > Attached is the v06

Re: [HACKERS] Window Functions patch v06

2008-10-11 Thread Hitoshi Harada
I'm afraid the patch was too huge, trying to send it again without attachment... I made up my mind to scratch former window functions and redesigned completely new execution model, based on the discussion with Heikki. Attached is the v06 against HEAD today. http://umitanuki.net/pgsql/wfv06/design