Commit Graph

48 Commits

Author SHA1 Message Date
b8494e7a11 expression: support disable expression pushdown based on store… (#16389) 2020-04-17 14:53:25 +08:00
1b3b6f0e80 *: make 'password' in mysql.user as a generated column of authentication_string (#15311) 2020-03-16 15:26:24 +08:00
e7272e08ed session: fix mis-spell (#15070) 2020-03-02 23:52:39 +08:00
c7cda1a0c9 session: fix unexpect '0' written to new_collation_enabled value. (#14842) 2020-02-19 17:03:46 +08:00
344c48d3b4 *: change field name 'password' to 'authentication_string' in mysql.user (#14598) 2020-02-19 11:58:42 +08:00
713099c1ad *: add a configuration entry to control if new collations are enabled (#14734)
Configuration entry `new_collations_enabled_on_first_bootstrap` is
added, which determines if the new collations can be enabled when a
TiDB cluster is initialized for the first time.
2020-02-17 15:56:24 +08:00
4ed347cff8 planner,session: add Reload and File privilege, check Reload for the flush statement (#14319) 2020-01-09 19:59:12 +08:00
0bab73adf5 *: use new row-format in tidb (#12634) 2020-01-02 22:34:39 +08:00
f9cdebdd25 privilege: fix privilege problem after upgrade (#14177) 2019-12-23 13:36:46 +08:00
cd07c4550d *: support certificate based authentication (#13955) 2019-12-23 11:37:29 +08:00
dc80933185 *:fix typo boostrap (#14174)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2019-12-23 10:52:18 +08:00
c7c7b730e4 set global variable tidb_txn_mode to pessimistic during bootstrap. (#14154) 2019-12-21 00:46:46 +08:00
093b27aea8 session: fix show variable result of tidb_enable_window_function after upgrade (#13866) 2019-12-03 15:54:39 +08:00
b7eddbf0f2 session: fix upgrade logic when bootstrap (#12827) 2019-11-09 11:08:43 +08:00
5bf03c8df4 executor: add SHUTDOWN command and privilege check (#12804) 2019-10-21 21:49:56 +08:00
028f63cb4a *: rename tidb_back_off_weight (#11655) 2019-08-07 15:04:56 +08:00
f8912049f5 *:add opt_rule_blacklist in mysql tables. (#11096) 2019-07-24 13:36:29 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
cd8c4e6e37 *: add a blacklist to disallow pushing down specific expressions (#10688) 2019-06-12 13:54:33 +08:00
d3a750ca8f ddl, session: update logs (#10546) 2019-05-27 13:42:33 +08:00
52c9d03a5e support view related privileges in mysql.tables_priv (#9894) 2019-05-22 21:10:46 +08:00
b0549b7875 stats: incremental analyze for index with feedback updates (#10355) 2019-05-08 13:50:46 +08:00
6a578a8b57 statistics: Support store CMSketch with Top N (#10255) 2019-04-29 12:15:59 +08:00
63d720cbfd *: support create global binding (#9846) 2019-04-17 22:12:50 +08:00
5a34c4b9d2 server: only owner do bootstrap (#10029) 2019-04-11 11:04:34 +08:00
4a5b3c2dfd session: use the uniform log format for session (#9517) 2019-03-21 19:28:16 +08:00
06183393ed *: create sql bind table during bootstrap (#9008) 2019-03-15 14:37:37 +08:00
45f9d6a00f statistics: compute and store column order correlation with handle (#9315) 2019-02-27 11:32:00 +08:00
c48ac8af18 session,privilege: fix account_locked default value for root (#9448) 2019-02-25 21:14:17 +08:00
0ee8899a6d session,privilege: upgrade TiDB, prepare data for RBAC (#9377)
RBAC(role based access control) needs the following data:
* Add account_locked column to mysql.user
* Add mysql.role_edges table
* Add mysql.default_roles table
* Add Create_role_priv and Drop_role_priv privilege
2019-02-22 18:00:01 +08:00
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
ddda6b460a session: upgrade tidb_max_chunk_size to new low bound value (#8969) 2019-01-08 18:52:12 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
29441950a3 *: write system timezone into mysql.tidb in bootstrap stage. (#7638) 2018-09-14 22:15:00 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
6e3bbe8e35 *: add HIGH_PRIORITY for the bootstrap SQLs. (#7616) 2018-09-06 00:49:12 +08:00
56f5ff8e09 Use TSO instead of seconds in gc_delete_range table (#7610) 2018-09-05 18:51:18 +08:00
0ab0b50f25 stats: refine the pseudo condition for stats (#6565) 2018-06-27 17:05:37 +08:00
48719d2019 stats: refine index row count estimation (#6869) 2018-06-22 15:48:36 +08:00
10e57a5cef *: save gc_delete_range items that is done in another table instead of deleting them. (#6512) 2018-05-14 07:09:15 -05:00
19573c6754 *: update stats using query feedback (#6197) 2018-04-10 19:12:38 +08:00
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +08:00
57afbe2680 session: upgrade mysql.db user column length to 32 (#6209)
To keep consistent with MySQL, so we won't meet this error:

tidb(127.0.0.1)> grant all privileges on test.* to 'abcddfjakldfjaldddds'@'%' identified by '';
ERROR 1406 (22001): Data too long for column 'User' at row 1
2018-04-03 05:39:50 -05:00
501de19821 stats: add average column size for the histogram (#5974) 2018-03-23 13:44:24 +08:00
f287451eed tidb: move tidb/*.go to session directory (#6062)
This change makes our top level directory clean.
2018-03-20 09:06:11 -05:00