Re: Add RANGE with values and exclusions clauses to the Window Functions - Mailing list pgsql-hackers

From Oliver Ford
Subject Re: Add RANGE with values and exclusions clauses to the Window Functions
Date
Msg-id CAGMVOduaHeA8q+kvCqX-UfuV_=jHvb-XK+1KJEiNy80Drk=y_A@mail.gmail.com
Whole thread Raw
In response to Re: Add RANGE with values and exclusions clauses to the Window Functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Add RANGE with values and exclusions clauses to the Window Functions
List pgsql-hackers
On Sat, Jan 27, 2018 at 4:14 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> No, that Assert is correct, because it's in SearchCatCacheList.
> It doesn't make any sense to use SearchCatCacheList for a lookup
> that specifies all of the key columns, because then you necessarily
> have at most one match; you might as well use regular SearchCatCache,
> which is significantly more efficient.

Ok the attached patch leaves that assert alone and uses
SearchSysCache4 for the Oid lookup. Everything still works.

If this looks generally alright-ish I'll start work on adding
float/double support as that's already been requested.

Attachment

pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: [HACKERS] MERGE SQL Statement for PG11
Next
From: Andres Freund
Date:
Subject: Re: JIT compiling with LLVM v9.0