[ORCA] Maintaining explain plans in MDPs

17 views
Skip to first unread message

David Kimura

unread,
Jan 9, 2024, 8:55:34 PMJan 9
to gpdb...@greenplum.org
Hi all,

For reference, this thread came out of a conversation [1] with Nishant.

ORCA uses MDPs to quickly test the optimizer for plan changes. But the format
is rather verbose and hard to visually parse compared to EXPLAIN plans. So, we
used to have a habit of including the EXPLAIN plan via a comment. But the
problem became that those comments quickly went out of date and were difficult
to maintain especially if a patch causes many plan changes.

But what if we could automate that process? It seems quite doable to add logic
into fixup_mdps.py to do that without too much effort (e.g.quick hack branch
[2]).

Any thoughts/opinions/concerns?

Thanks,
David

[1] https://github.com/greenplum-db/gpdb/pull/16731#discussion_r1444397969
[2] https://github.com/dgkimura/gpdb/tree/automate-mdp-fixup-explain

--
This electronic communication and the information and any files transmitted
with it, or attached to it, are confidential and are intended solely for
the use of the individual or entity to whom it is addressed and may contain
information that is confidential, legally privileged, protected by privacy
laws, or otherwise restricted from disclosure to anyone else. If you are
not the intended recipient or the person responsible for delivering the
e-mail to the intended recipient, you are hereby notified that any use,
copying, distributing, dissemination, forwarding, printing, or copying of
this e-mail is strictly prohibited. If you received this e-mail in error,
please return the e-mail to the sender, delete it from your computer, and
destroy any printed copy of it.
Reply all
Reply to author
Forward
0 new messages