Bug #36006 Optimizer does table scan for select count(*) w/5.1.22, .23, not 5.0.51, 5.1.11
Submitted: 11 Apr 2008 22:43 Modified: 13 May 2008 21:56
Reporter: Richard Bejtlich
Status: Closed
Category:Server: Optimizer Severity:S2 (Serious)
Version:5.1.22, 5.1.23, 5.1.25-BK OS:FreeBSD (7.0)
Assigned to: Gleb Shchepa Target Version:5.1+
Tags: regression
Triage: D2 (Serious)

File: Maximum allowed size is 500KB.
Description:
Privacy:

If the data you need to attach is more than 500KB, you should create a compressed archive of the data and a README file that describes the data with a filename that includes the bug number (example: bug-data-36006.zip), and use FTP to upload the archive to ftp://ftp.mysql.com/pub/mysql/upload/. Once you have uploaded the file, add a comment to this bug to notify us about it. Note: This directory is unlistable, which means that once you have uploaded your file, you will not be able to see it.

All entries become the exclusive editorial property of Sun Microsystems, Inc.

[12 Apr 2008 2:01] Richard Bejtlich
I ran my tests with 5.1.22, 5.1.23, and 5.0.51a on one box to show the problem.

Attachment: example_on_one_box.txt (text/plain), 18.41 KiB.