Sergey Petrunya
8af289d2b0
MDEV-5293: outer join, join buffering, and order by - invalid query plan
...
- make_join_readinfo() has the code that forces use of "Using temporary;
Using filesort" when join buffering is in use.
That code didn't handle all cases, in particular it didn't hande the case
where ORDER BY originally has tables from multiple columns, but the
optimizer eventually figures out that doing filesort() on one table
will be sufficient. Adjusted the code to handle that case.
2013-11-18 12:26:25 +04:00
..
2013-11-11 09:31:09 +01:00
2012-01-13 15:50:02 +01:00
2011-11-24 18:48:58 +02:00
2013-09-23 23:33:18 +02:00
2012-10-18 23:33:06 +02:00
2013-03-19 15:53:48 +01:00
2013-08-28 22:16:13 +02:00
2013-02-25 10:42:40 +01:00
2013-09-06 22:31:30 +02:00
2012-03-28 19:26:00 +02:00
2012-09-07 17:05:17 +03:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-11-11 16:17:32 +01:00
2013-03-19 13:29:12 +01:00
2013-04-18 22:17:29 +02:00
2013-03-19 13:29:12 +01:00
2012-01-13 15:50:02 +01:00
2012-01-13 15:50:02 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-02-25 15:26:00 +01:00
2013-03-19 13:29:12 +01:00
2012-01-13 15:50:02 +01:00
2013-03-19 13:29:12 +01:00
2013-07-08 16:49:42 +04:00
2013-10-29 18:50:36 +02:00
2013-09-10 10:08:11 +04:00
2013-07-16 19:09:54 +02:00
2011-11-03 19:17:05 +01:00
2013-03-19 13:29:12 +01:00
2012-04-29 18:08:11 +05:00
2011-12-08 16:29:45 +04:00
2012-01-13 15:50:02 +01:00
2011-11-27 17:46:20 +01:00
2012-11-06 11:52:55 +02:00
2013-02-25 15:26:00 +01:00
2013-03-19 13:29:12 +01:00
2013-02-25 15:26:00 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 15:53:48 +01:00
2013-03-19 15:53:48 +01:00
2013-03-19 15:53:48 +01:00
2012-01-13 15:50:02 +01:00
2013-03-19 13:29:12 +01:00
2013-10-24 11:24:37 +04:00
2013-09-06 22:31:30 +02:00
2013-08-28 22:16:13 +02:00
2013-09-20 14:47:38 +04:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-07-16 19:09:54 +02:00
2013-03-19 13:29:12 +01:00
2013-07-16 19:09:54 +02:00
2012-01-13 15:50:02 +01:00
2013-11-11 20:38:04 +02:00
2013-11-11 20:38:04 +02:00
2013-03-27 10:03:28 +01:00
2012-01-13 15:50:02 +01:00
2013-10-13 13:43:29 -07:00
2013-10-13 13:43:29 -07:00
2013-09-25 17:16:13 +03:00
2013-09-25 17:16:13 +03:00
2013-09-25 17:16:13 +03:00
2012-01-13 15:50:02 +01:00
2013-09-25 17:16:13 +03:00
2013-09-25 17:16:13 +03:00
2013-11-11 20:38:04 +02:00
2013-03-17 11:41:25 +01:00
2013-07-16 19:09:54 +02:00
2013-07-16 19:09:54 +02:00
2013-11-08 14:30:35 +04:00
2013-11-08 14:30:35 +04:00
2013-09-25 17:16:13 +03:00
2013-09-25 17:16:13 +03:00
2013-11-08 14:30:35 +04:00
2013-11-08 14:30:35 +04:00
2013-05-07 13:05:09 +02:00
2013-05-07 13:05:09 +02:00
2011-11-03 19:17:05 +01:00
2011-11-03 19:17:05 +01:00
2013-03-19 15:53:48 +01:00
2012-09-05 18:23:51 +03:00
2012-05-08 14:27:44 +02:00
2011-11-03 19:17:05 +01:00
2013-11-11 16:17:32 +01:00
2013-07-16 19:09:54 +02:00
2013-11-11 16:17:32 +01:00
2013-09-06 22:31:30 +02:00
2013-07-16 19:09:54 +02:00
2012-11-22 10:19:31 +01:00
2013-01-11 00:22:14 +02:00
2013-02-28 18:42:49 +01:00
2013-03-19 15:53:48 +01:00
2012-01-13 15:50:02 +01:00
2013-03-19 13:29:12 +01:00
2013-09-20 14:47:38 +04:00
2013-09-20 14:47:38 +04:00
2012-01-13 15:50:02 +01:00
2013-07-16 19:09:54 +02:00
2013-05-09 22:21:07 +02:00
2013-03-19 13:29:12 +01:00
2013-11-11 17:20:18 +01:00
2013-09-09 16:56:35 +05:00
2013-07-16 19:09:54 +02:00
2011-12-13 17:44:19 +02:00
2011-12-13 17:44:19 +02:00
2012-02-21 20:51:56 +01:00
2013-01-20 14:06:33 +01:00
2013-09-09 14:00:18 +02:00
2013-04-03 18:51:29 +04:00
2013-11-11 20:38:04 +02:00
2013-09-20 14:47:38 +04:00
2013-11-12 17:37:32 +04:00
2013-08-22 14:12:10 +04:00
2012-05-04 07:16:38 +02:00
2012-05-04 07:16:38 +02:00
2013-05-07 13:05:09 +02:00
2013-09-06 22:31:30 +02:00
2013-01-30 17:51:52 +01:00
2013-02-25 15:26:00 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-06-12 22:12:09 +02:00
2011-12-11 11:34:44 +02:00
2013-09-09 14:00:18 +02:00
2011-11-22 18:04:38 +01:00
2012-08-24 15:29:01 +02:00
2013-03-19 13:29:12 +01:00
2013-07-16 19:09:54 +02:00
2013-03-19 13:29:12 +01:00
2011-11-03 19:17:05 +01:00
2012-02-16 10:48:16 +01:00
2012-03-28 01:04:46 +02:00
2013-02-25 15:26:00 +01:00
2012-03-28 01:04:46 +02:00
2013-04-18 22:17:29 +02:00
2012-03-17 01:26:58 -07:00
2013-03-19 13:29:12 +01:00
2012-08-28 19:39:49 +03:00
2012-03-17 01:26:58 -07:00
2013-04-17 19:42:34 +02:00
2013-02-25 15:26:00 +01:00
2011-11-03 19:17:05 +01:00
2013-03-19 13:29:12 +01:00
2013-08-27 19:18:04 +03:00
2013-02-25 15:26:00 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-05-07 13:05:09 +02:00
2013-07-16 19:09:54 +02:00
2013-09-06 22:31:30 +02:00
2013-10-21 13:37:17 +04:00
2012-03-01 12:41:49 +01:00
2012-03-28 01:04:46 +02:00
2013-03-19 13:29:12 +01:00
2013-10-16 16:07:25 +03:00
2013-02-25 15:26:00 +01:00
2013-01-15 19:13:32 +01:00
2013-03-19 13:29:12 +01:00
2013-04-18 22:17:29 +02:00
2011-11-24 18:48:58 +02:00
2013-10-10 14:20:35 +05:00
2013-08-18 19:58:51 -07:00
2013-08-28 07:49:53 +02:00
2011-11-24 18:48:58 +02:00
2013-05-07 13:05:09 +02:00
2013-01-30 17:51:52 +01:00
2011-11-03 19:17:05 +01:00
2013-07-16 19:09:54 +02:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-09-09 16:56:35 +05:00
2013-09-09 16:56:35 +05:00
2013-10-13 13:43:29 -07:00
2013-03-01 18:09:06 +02:00
2013-05-07 13:05:09 +02:00
2013-09-06 22:31:30 +02:00
2011-11-03 19:17:05 +01:00
2013-10-04 08:33:09 +03:00
2013-03-20 20:56:14 +01:00
2011-11-03 19:17:05 +01:00
2013-11-11 16:17:32 +01:00
2013-11-11 16:17:32 +01:00
2013-03-19 13:29:12 +01:00
2013-04-17 19:42:34 +02:00
2012-05-28 11:14:43 +05:30
2013-03-29 14:56:09 +01:00
2011-11-21 19:13:14 +02:00
2011-11-21 19:13:14 +02:00
2013-10-02 17:59:56 -07:00
2013-03-19 13:29:12 +01:00
2013-07-16 19:09:54 +02:00
2011-11-03 19:17:05 +01:00
2013-05-03 00:10:43 +04:00
2013-10-29 18:50:36 +02:00
2011-11-03 19:17:05 +01:00
2013-03-19 13:29:12 +01:00
2013-07-16 19:09:54 +02:00
2013-07-16 19:09:54 +02:00
2013-07-16 09:22:17 +04:00
2012-02-17 12:19:38 +01:00
2013-07-16 19:09:54 +02:00
2013-07-16 19:09:54 +02:00
2013-03-19 15:53:48 +01:00
2013-07-16 19:09:54 +02:00
2013-03-10 12:46:56 +01:00
2012-02-21 20:51:56 +01:00
2013-09-13 13:19:29 +03:00
2013-08-30 11:00:29 +04:00
2012-02-17 12:19:38 +01:00
2013-03-19 13:29:12 +01:00
2013-02-28 22:47:29 +01:00
2013-09-06 22:31:30 +02:00
2012-02-15 18:08:08 +01:00
2013-11-11 16:17:32 +01:00
2013-11-11 16:17:32 +01:00
2013-02-26 17:57:05 +05:30
2013-09-06 22:31:30 +02:00
2013-05-07 13:05:09 +02:00
2013-11-05 09:18:59 +04:00
2013-04-17 19:42:34 +02:00
2013-09-09 16:56:35 +05:00
2013-11-11 09:31:09 +01:00
2012-08-09 17:22:00 +02:00
2013-11-11 16:17:32 +01:00
2013-01-15 19:07:46 +01:00
2013-01-15 19:07:46 +01:00
2013-02-25 15:26:00 +01:00
2012-05-21 20:54:41 +02:00
2013-09-06 22:31:30 +02:00
2013-07-16 19:09:54 +02:00
2013-03-19 13:29:12 +01:00
2013-11-18 12:26:25 +04:00
2013-10-29 18:50:36 +02:00
2011-11-24 18:48:58 +02:00
2013-02-25 15:26:00 +01:00
2013-11-11 09:31:17 +01:00
2013-02-25 15:26:00 +01:00
2013-01-15 19:13:32 +01:00
2013-03-19 13:29:12 +01:00
2013-07-16 19:09:54 +02:00
2013-05-07 13:05:09 +02:00
2013-07-16 19:09:54 +02:00
2013-09-06 22:31:30 +02:00
2013-09-06 22:31:30 +02:00
2011-11-21 19:13:14 +02:00
2013-06-01 21:33:26 +02:00
2011-11-03 19:17:05 +01:00
2013-07-08 16:49:42 +04:00
2013-06-28 15:20:40 +04:00
2013-07-16 19:09:54 +02:00
2012-01-13 15:50:02 +01:00
2013-03-01 18:01:44 +02:00
2012-03-28 01:04:46 +02:00
2013-03-19 13:29:12 +01:00
2013-10-29 18:50:36 +02:00
2013-07-16 19:09:54 +02:00
2011-11-03 19:17:05 +01:00
2013-07-16 19:09:54 +02:00
2013-09-06 22:31:30 +02:00
2013-03-19 15:53:48 +01:00
2011-11-03 19:17:05 +01:00
2012-03-02 15:03:20 -08:00
2013-11-05 09:18:59 +04:00
2013-09-06 22:31:30 +02:00
2013-09-18 17:25:10 +02:00
2013-09-25 17:16:13 +03:00
2012-01-13 15:50:02 +01:00
2011-11-03 19:17:05 +01:00
2013-11-05 09:18:59 +04:00
2013-11-06 22:53:39 +04:00
2012-11-02 10:43:52 +01:00
2013-11-05 09:18:59 +04:00
2013-03-19 15:53:48 +01:00
2013-03-19 13:29:12 +01:00
2013-04-17 19:42:34 +02:00
2011-12-11 11:34:44 +02:00
2012-01-13 15:50:02 +01:00
2013-01-23 15:18:05 -08:00
2012-06-24 09:10:11 -07:00
2013-07-16 19:09:54 +02:00
2012-03-17 01:26:58 -07:00
2012-02-17 12:19:38 +01:00