Re: Window functions can be created with defaults, but they don't work

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Window functions can be created with defaults, but they don't work
Date: 2013-11-05 22:23:49
Message-ID: 1083.1383690229@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I wrote:
> Attached is a proposed patch against HEAD that fixes this by supporting
> default arguments properly for window functions. In passing, it also
> allows named-argument notation in window function calls, since that's
> free once the other thing works (because the same subroutine fixes up
> both things).

Hm, well, almost free --- turns out ruleutils.c was assuming WindowFuncs
couldn't contain named arguments. Updated patch attached.

regards, tom lane

Attachment Content-Type Size
window-function-default-args-2.patch text/x-diff 7.7 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2013-11-05 22:40:15 Re: Add cassert-only checks against unlocked use of relations
Previous Message Tom Lane 2013-11-05 22:19:21 Re: Add cassert-only checks against unlocked use of relations