Commit Graph

66 Commits

Author SHA1 Message Date
e0ce5bd585 bindinfo: report error for completely invalid hint of bind_sql (#16059) 2020-04-14 15:46:30 +08:00
b54ac5b2ec refine bindinfo_test.TestGlobalAndSessionBindingBothExist (#15941) 2020-04-08 23:45:16 +08:00
a69e7da69b util/hint: resolve semantically equivalent bindings into a single one (#15895) 2020-04-03 17:27:57 +08:00
0fcece7bbc *: show correct result for system variable tidb_capture_plan_baselines (#16013) 2020-04-03 12:18:08 +08:00
746c88a461 bindinfo, planner: make evolve tasks consider runtime hints instead of ignoring them (#15668) 2020-03-31 20:30:23 +08:00
2619f02ddd *: move hint and block hint processor to util directory (#15897) 2020-03-31 16:37:45 +08:00
cc72a37d05 bindinfo: admin evolve baseline should not check the evolving time window (#15830) 2020-03-30 22:02:11 +08:00
71cf7e92f1 bindinfo: build ID of BindRecord from Hint instead of explain query (#15781) 2020-03-30 14:40:43 +08:00
22a585cfec bindinfo, session: mute internal logs during capture bindings (#15802) 2020-03-30 12:57:05 +08:00
7223e7f8c9 bindinfo, planner: fix TiFlash compatibility with binding and SQL plan management (#15719) 2020-03-27 15:44:15 +08:00
b60991e29c *: support ADMIN RELOAD BINDINGS to refresh binding cache (#15732) 2020-03-27 12:21:14 +08:00
5cf0c3e2d4 bindinfo: clear all bindings when create bind for one normalized SQL (#15669) 2020-03-26 14:07:08 +08:00
11bfea6f45 bindinfo: set correct default_db for captured bindings (#15367) 2020-03-24 17:35:46 +08:00
21ee980e11 *: Refine Explain's format. (#15507) 2020-03-23 17:57:49 +08:00
df6f378267 stmtsummary: add a switch to decide whether capture internal q… (#15461) 2020-03-20 17:39:11 +08:00
4112f1c25b planner/bindinfo: fix occasional panic of baseline evolution (#15233) 2020-03-19 21:10:53 +08:00
9e97091de4 executor: add privilege check for show bindings (#14443) 2020-02-03 15:16:54 +08:00
9d38c5467a *: use 8 byte MysqlTime format (#14278) 2020-01-31 14:49:06 +08:00
cdf1430260 bindinfo: do not capture bindings for internal sqls (#14372) 2020-01-09 16:12:52 +08:00
9563ec77e4 config, infoschema: enable statement summary by default (#14369) 2020-01-08 14:50:39 +08:00
40a6be1a82 bindinfo: handle statement hints in bindings (#14248) 2020-01-07 14:18:46 +08:00
a6d26ac882 bindinfo: fix create time for duplicate bindings (#14155) 2020-01-07 13:24:38 +08:00
174ff27943 *: fix static check issues (#14286) 2020-01-06 16:07:15 +08:00
e755459788 bindinfo: change the way of generate hints from sql (#14095) 2020-01-02 14:31:39 +08:00
d006443194 type: encapsulate Time API (#14288) 2019-12-31 12:41:09 +08:00
447cfbd067 bindinfo: fix bugs when capture and evolve plans (#14206) 2019-12-28 20:35:39 +08:00
635f2e1afd bindinfo: set default db for bindings correctly (#14077) 2019-12-27 18:02:09 +08:00
39a370ce83 bindinfo: support drop bindings of dropped table (#14071) 2019-12-19 14:51:46 +08:00
dddb85ca92 bindinfo: remove last semicolon of bind sqls (#14110) 2019-12-18 15:35:46 +08:00
f6fc7847b1 bindinfo: unify session variables of spm (#14005) 2019-12-12 15:09:28 +08:00
b04001b2a5 *: make golint happy #14025 (#14034) 2019-12-12 11:42:58 +08:00
b743208fd7 bindinfo, planner: fix sql bind when sql has symbol list (#13889) 2019-12-07 14:26:08 +08:00
e9d1142ed2 bindinfo: fix bindinfo bugs when update cache (#13875) 2019-12-04 14:59:40 +08:00
2de2baa256 *: fix staticcheck errors in folder bindinfo, config, infoschema, meta and privilege (#13702) 2019-11-26 17:27:29 +08:00
518692c14c bindinfo: support evolve plan (#13465) 2019-11-22 17:09:37 +08:00
af2a2c5321 bindinfo: support bindings management (#13608) 2019-11-22 11:01:07 +08:00
58733475da *: support capture evolve plan tasks (#13199) 2019-11-13 16:22:48 +08:00
343bb640a0 bindinfo: support drop specific binding (#13245) 2019-11-13 12:32:24 +08:00
5c5aa104d9 *: support using multiply bindings in planner (#13047) 2019-11-05 16:38:15 +08:00
3a1fb291ed bindinfo: correctly handle quotes for bindings sql (#13115) 2019-11-04 15:57:39 +08:00
bb2e349fea bindinfo: support multiply bindings for a sql (#12851) 2019-10-29 14:40:23 +08:00
44a5ffe8a0 planner: support database name in optimizer hint (#12932) 2019-10-25 19:45:18 +08:00
740b7769b0 *: support automatically create sql baselines (#12434) 2019-10-17 14:16:48 +08:00
20823fbe18 *: add a system variable to control the usage of baselines (#12624) 2019-10-14 21:09:03 +08:00
7ffa4500e6 planner: support a hint to read from tiflash in planner (#12479) 2019-10-11 16:36:35 +08:00
e2b1f7eff8 expression: change the String() method of expression.Column (#12089) 2019-09-16 14:30:22 +08:00
073ab9b6a3 *: refactor RestrictedSQLExecutor (#11904) 2019-08-28 19:17:19 +08:00
f24866a40c *: support bindings for prepare statement (#11642) 2019-08-26 10:30:40 +08:00
adb3071c90 *: refine the attribute definition of types.Time and types.Dur… (#11672) 2019-08-14 11:30:40 +08:00
2cfdd9e75e bindinfo: fix the bind fields with quotes or slashes (#11671) 2019-08-13 13:36:16 +08:00