pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: Andreas Karlsson <andreas@proxel.se>
Cc: David Fetter <david@fetter.org>
Cc: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Early WIP/PoC for inlining CTEs
Date: Sun, 27 Jan 2019 10:21:55 -0500
Message-ID: <744.1548602515@sss.pgh.pa.us> (raw )
In-Reply-To: <87fttejl62.fsf@news-spur.riddles.org.uk >
References: <87sh48ffhb.fsf@news-spur.riddles.org.uk >
<20180725054236.GB17411@fetter.org >
<87bmavfjhy.fsf@news-spur.riddles.org.uk >
<20180725191447.GE17411@fetter.org >
<CAEepm=0MKV3MnR4Dn5RkXsK+RnmHEFitqiG4PcBhXtBK4JOoWw@mail.gmail.com >
<20180727081058.GN17411@fetter.org >
<dccb37dd-2f52-dbd7-a4c4-72a5853f4838@proxel.se >
<e02af96a-3e25-5de4-09a4-a7ebf3452184@proxel.se >
<8810.1542402910@sss.pgh.pa.us >
<d4daf011-01cf-6bf9-3f15-85ae1572e909@proxel.se >
<87r2dxrw1z.fsf@news-spur.riddles.org.uk >
<d0619160-10af-dcc9-4e7d-57845b92570c@proxel.se >
<29ce1707-0dae-ad33-8ab0-7d5226c7dfd3@proxel.se >
<11140.1548454956@sss.pgh.pa.us >
<31065.1548543317@sss.pgh.pa.us >
<87fttejl62.fsf@news-spur.riddles.org.uk >
Andrew Gierth <andrew@tao11.riddles.org.uk> writes:
> I'm not sure we should nail down the rule that the absence of NOT
> MATERIALIZED will mean a multiply-referenced CTE is evaluated once. One
> would hope that in the future the planner might be taught to inline or
> not in that case depending on cost. I think it makes more sense to say
> that we never inline if MATERIALIZED is specified, that we always inline
> if NOT MATERIALIZED is specified, and that if neither is specified the
> planner will choose (but perhaps note that currently it always chooses
> only based on refcount).
I have no objection to documenting it like that; I just don't want us
to go off into the weeds trying to actually implement something smarter
for v12.
regards, tom lane
view thread (112+ messages) latest in thread
Message-ID: <744.1548602515@sss.pgh.pa.us>
Permalink: ../744.1548602515@sss.pgh.pa.us/
Also on: postgresql.org/message-id/744.1548602515@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, andrew@tao11.riddles.org.uk, andreas@proxel.se, david@fetter.org, thomas.munro@enterprisedb.com
Subject: Re: Early WIP/PoC for inlining CTEs
In-Reply-To: <744.1548602515@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