Hi hackers,
I try to made a patch to auto_explain in order to log queries with wrong estimation.
I compare planned row id : queryDesc->planstate->plan->plan_rows
Vs ntuples : queryDesc->planstate->instrument->ntuples;
If I understand, instrumentation is used only with explain. So my patch works
only with explain (and segfault without).
Is there a simple way to get ntuples?
Attached a naive patch.
Thanks :)
--
Adrien NAYRAT
http://dalibo.com - http://dalibo.org