Re: Restriction of windows functions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Restriction of windows functions
Date
Msg-id 29323.1466172072@sss.pgh.pa.us
Whole thread Raw
In response to Restriction of windows functions  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
Responses Re: Restriction of windows functions  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
List pgsql-hackers
Konstantin Knizhnik <k.knizhnik@postgrespro.ru> writes:
> ERROR:  RANGE PRECEDING is only supported with UNBOUNDED
> Is there some principle problem in implementing such kind of window?

There was such code in the original windowagg patch and it got rejected
as being too broken.  Please consult the archives.

> Certainly it assumes that window is ordered by key and the key type 
> supports subtraction, so "text" can not be used here.

IIRC, the sticking point was defining a reasonably datatype-independent
(i.e. extensible) notion of distance.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: MultiXactId error after upgrade to 9.3.4
Next
From: Teodor Sigaev
Date:
Subject: Re: Should phraseto_tsquery('simple', 'blue blue') @@ to_tsvector('simple', 'blue') be true ?