agora inbox for pgsql-docs@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: Zeyuan Hu <ferrishu3886@gmail.com>
Cc: pgsql-docs@postgresql.org
Subject: Re: Possible documentation inaccuracy in optimizer README
Date: Tue, 08 Apr 2025 00:28:07 -0400
Message-ID: <3887651.1744086487@sss.pgh.pa.us> (raw)
In-Reply-To: <CACvHWmYFo+60yMqKJajDDvKN5EM41YHrCT3oxukwXmGAqpWvyw@mail.gmail.com>
References: <CACvHWmYFo+60yMqKJajDDvKN5EM41YHrCT3oxukwXmGAqpWvyw@mail.gmail.com>
Zeyuan Hu <ferrishu3886@gmail.com> writes:
> In https://github.com/postgres/postgres/tree/master/src/backend/optimizer,
> there are two examples on the dynamic programming (DP) algorithm used in
> the optimizer, which I think
> have some inaccuracy:
You're right that these examples do not consider the effects of
clauses generated by the EquivalenceClass machinery. But I don't
think the exposition would be improved by mentioning that here.
The point of these examples is that we don't consider joining
rels that have no linking clauses at all.
We could possibly avoid the inaccuracy by making the examples use
some other operators that are not equijoins. But I wonder if that
would not be more confusing rather than less so.
regards, tom lane
view thread (7+ messages) latest in thread
Message-ID: <3887651.1744086487@sss.pgh.pa.us>
Permalink: ../3887651.1744086487@sss.pgh.pa.us/
Also on: postgresql.org/message-id/3887651.1744086487@sss.pgh.pa.us
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-docs@postgresql.org
Cc: tgl@sss.pgh.pa.us, ferrishu3886@gmail.com
Subject: Re: Possible documentation inaccuracy in optimizer README
In-Reply-To: <3887651.1744086487@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox