[Info-ingres] same select statement returns different results when repeatedly executed
Roy Hann
specially at processed.almost.meat
Wed Sep 24 10:50:09 UTC 2014
Tim wrote:
> On Tuesday, September 23, 2014 7:41:27 PM UTC+1, droesler wrote:
>> what should I be looking for to resolve this?
> Try Optimizedb. We saw this in a situation where a lot of records
> were added to a table outside of the range of the index when optimizdeb
> last ran. Rerunning optimizedb (or dropping statistics) allowed the
> query to run successfully.
If running optimizedb seemed to fix the problem it really only
dodged it by not selecting a plan that used whatever bit of code had
the real bug, which is only a matter of luck.
I'm not saying that changing your luck wouldn't help but the underlying
problem would still be there waiting.
Of course one has to assume the new plan is different by virtue of being
better, so that's good! :-)
Roy
More information about the Info-ingres
mailing list