public inbox for [email protected]
help / color / mirror / Atom feedFrom: Jean-Christophe BOGGIO <[email protected]>
To: [email protected]
Subject: Re: Any way to get nested loop index joins on CTEs?
Date: Wed, 16 Jul 2025 13:24:54 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAFvQSYQAJWioHyUNUOjhj0_P0Z9_f_G_5B=9XyYZyPUpzsWW=A@mail.gmail.com>
References: <CAFvQSYQAJWioHyUNUOjhj0_P0Z9_f_G_5B=9XyYZyPUpzsWW=A@mail.gmail.com>
Following up on this, I very often have to create PLPgSql functions to
workaround this problem: create one (or several) temp table(s) (with ON
COMMIT DROP), analyze it/them and create indices on some field(s).
Being able to write something like:
WITH xxx AS MATERIALIZED ANALYZED INDEXED ON field1 (
SELECT DISTINCT myfield AS field1
FROM table1
)
SELECT field2
FROM table2
JOIN xxx USING(field1);
would help a lot in some cases. Of course, the syntax is just a thought
but the general idea is there.
view thread (3+ messages) latest in thread
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: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Any way to get nested loop index joins on CTEs?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox