Re: Yet another vectorized engine

From: Konstantin Knizhnik <k(dot)knizhnik(at)postgrespro(dot)ru>
To: Hubert Zhang <hzhang(at)pivotal(dot)io>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, Gang Xiong <gxiong(at)pivotal(dot)io>, Asim R P <apraveen(at)pivotal(dot)io>, Ning Yu <nyu(at)pivotal(dot)io>
Subject: Re: Yet another vectorized engine
Date: 2020-02-27 09:03:54
Message-ID: d0bc3bd6-9d99-7318-25de-6767842d6d22@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 27.02.2020 11:09, Hubert Zhang wrote:
> Hi Konstantin,
> I also vimdiff nodeAgg.c in your PG13 branch with nodeAgg.c in pg's
> main repo.
> Many functions has changed from PG96 to PG13, e.g.
> 'advance_aggregates', 'lookup_hash_entry'
> The vectorized nodeAgg seems still follow the PG96 way of implementing
> these functions.
> In general, I think we'd better port executor of PG13 to vectorized
> executor of PG13 instead of merge some PG13 code into vectorized
> executor of PG96 to make it works. Because It's hard to determine
> which functions need to be merged and it's buggy if the executor code
> of both PG13 and PG96 exist in one branch.
>
> What's your opinion?
>

In new version of Postgres all logic of aggregates transition is
encapsulated in expression and performed by execExprInterp or generated
GIT code.
If we not going to embed vectorize engine in kernel and continue to
develop it as extension, then I do not have any good idea how to achieve
it without
copying and patching code of ExecInterpExpr.

In any case, the current prototype doesn't show any noticeable
performance improvement  comparing with existed executor with enabled JIT.
And providing vectorized version of ExecInterpExpr will not help to
increase speed (according to profile time is spent in other places).

--
Konstantin Knizhnik
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2020-02-27 09:10:57 Re: vacuum verbose detail logs are unclear; log at *start* of each stage
Previous Message Sandro Santilli 2020-02-27 08:58:21 Re: [postgis-devel] About EXTENSION from UNPACKAGED on PostgreSQL 13