Optimizer debugging with GDB

You are viewing an old version of this article. View the current version here.

Some useful things for debugging optimizer code with gdb.

h2. best_access_path

This is a function which adds another table to the join prefix.

A macro to print the join prefix already constructed: <<code>> define bap_print_prefix set $i=0 while ($i < idx) p join->positions[$i++].table->table->alias.Ptr end end <<code>>

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.