pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: David Rowley <dgrowleyml@gmail.com>
Cc: Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Cc: Andy Fan <zhihui.fan1213@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Hybrid Hash/Nested Loop joins and caching results from subplans
Date: Tue, 23 Feb 2021 00:43:47 -0500
Message-ID: <3795226.1614059027@sss.pgh.pa.us> (raw )
In-Reply-To: <20210223020105.kz3rlairv3gjojys@alap3.anarazel.de >
References: <CAApHDvpGX7RN+sh7Hn9HWZQKp53SjKaL=GtDzYheHWiEd-8moQ@mail.gmail.com >
<CAKU4AWq_K950aYpzLMH5DtYX=5a03dmYgEkeEq0jTcvBQbWnNQ@mail.gmail.com >
<CAApHDvq9voUu5ShxOvdeFBR8LyWZBy0+SPHSt0N5qLOVaZ2tYw@mail.gmail.com >
<CAApHDvpXN0nT75ki9jbrAcPckYxzZP_KWdCmZDQs2fb=rNu_5Q@mail.gmail.com >
<CAApHDvq5FU7miePUoFKUzjzxFHv47Eenz6q8-ay3qiZ3CkwVQQ@mail.gmail.com >
<4bbece40-d648-b6f9-a323-fcb8f4b45e78@postgrespro.ru >
<CAApHDvodjxCbOrinbk6rh9M07gMVySQdJBRTxR4PKbxvPuzj3Q@mail.gmail.com >
<CAApHDvpbusiKMV=vZypdpHHu81u0zMVAp6hu1vg-=gQLBBKUPA@mail.gmail.com >
<20210223013911.xf2lhaz6pljuxsjj@alap3.anarazel.de >
<3753634.1614045077@sss.pgh.pa.us >
<20210223020105.kz3rlairv3gjojys@alap3.anarazel.de >
Andres Freund <andres@anarazel.de> writes:
> We could add a wrapper node around "planner expressions" that stores
> metadata about them during planning, without those properties leaking
> over expressions used at other times. E.g. having
> preprocess_expression() return a PlannerExpr that that points to the
> expression as preprocess_expression returns it today. That'd make it
> easy to cache information like volatility. But it also seems
> prohibitively invasive :(.
I doubt it's that bad. We could cache such info in RestrictInfo
for quals, or PathTarget for tlists, without much new notational
overhead. That doesn't cover everything the planner deals with
of course, but it would cover enough that you'd be chasing pretty
small returns to worry about more.
regards, tom lane
view thread (112+ messages) latest in thread
Message-ID: <3795226.1614059027@sss.pgh.pa.us>
Permalink: ../3795226.1614059027@sss.pgh.pa.us/
Also on: postgresql.org/message-id/3795226.1614059027@sss.pgh.pa.us
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, dgrowleyml@gmail.com, k.knizhnik@postgrespro.ru, zhihui.fan1213@gmail.com, alvherre@alvh.no-ip.org, pgsql-hackers@lists.postgresql.org
Subject: Re: Hybrid Hash/Nested Loop joins and caching results from subplans
In-Reply-To: <3795226.1614059027@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox