select optimizer;
it returns
SELECT: identifier 'optimizer' unknown
What's the problem with it? And I can't find the sys table in the database using \d.
For your first question: if your current_schema
is not sys
, you need to use select sys.optimizer;
.
For your second question: the best existing example is probably in monetdb5/extras/mal_optimizer_template
. Next to that, it's basically checking the source code to see how other optimisers have been implemented. NB, although it doesn't often happen, the internals of MonetDB can change between (major) versions. I'd recomment you to use Oct2020 or newer.