Re: Allow WindowFuncs prosupport function to use more optimal WindowClause options

From: Zhihong Yu <zyu(at)yugabyte(dot)com>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: Vik Fearing <vik(at)postgresfriends(dot)org>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Erwin Brandstetter <brsaweda(at)gmail(dot)com>
Subject: Re: Allow WindowFuncs prosupport function to use more optimal WindowClause options
Date: 2022-10-18 02:40:07
Message-ID: CALNJ-vRLJBiV8OnoFkF-TYqFtCsY=7+kr69WJ7N1RSGgqWEhJQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Oct 17, 2022 at 5:05 PM David Rowley <dgrowleyml(at)gmail(dot)com> wrote:

> Thanks for having a look at this.
>
> On Fri, 14 Oct 2022 at 10:52, Zhihong Yu <zyu(at)yugabyte(dot)com> wrote:
> > + req->frameOptions = (FRAMEOPTION_ROWS |
> > + FRAMEOPTION_START_UNBOUNDED_PRECEDING |
> > + FRAMEOPTION_END_CURRENT_ROW);
> >
> > The bit combination appears multiple times in the patch.
> > Maybe define the combination as a constant in supportnodes.h and
> reference it in the code.
>
> I don't believe supportnodes.h has any business having any code that's
> related to actual implementations of the support request type. If we
> were to have such a definition then I think it would belong in
> windowfuncs.c. I'd rather see each implementation of the support
> request spell out exactly what they mean, which is what the patch does
> already.
>
> David
>
Hi,
I am fine with keeping the code where it is now.

Cheers

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Laurenz Albe 2022-10-18 02:55:46 Re: [PATCH] Allow usage of archive .backup files as backup_label
Previous Message Peter Smith 2022-10-18 02:35:47 Re: Perform streaming logical transactions by background workers and parallel apply