Commit Graph

121 Commits

Author SHA1 Message Date
55a38a1c76 *: tiny clean up the RecordSet NewChunk() method (#29232) 2021-11-02 20:02:51 +08:00
da76e34953 *: add support for --initialize-secure and --initialize-insecure (#28487) 2021-10-27 14:38:49 +08:00
de9b5cbb05 session, statistics: fix "data too long for column 'xxx_bound'" when analyze tables with very long strings (#28800) 2021-10-25 19:50:48 +08:00
ab0d231d9e session: add system table mysql.column_stats_usage (#27849) 2021-10-18 19:24:43 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
6eb02fbe5e session: support references on column (#28546) 2021-10-07 12:23:22 +08:00
680de922ed *: fix license header (#28085) 2021-09-17 22:26:41 +08:00
75ee932f00 session: update Host type to char(255) in mysql.* tables for compatible with mysql-8.0 (#27887) 2021-09-13 11:18:39 +08:00
6267e0fbe3 session: change the global variable tidb_stmt_summary_max_stmt_count value from 200 to 3000 when upgrade (#27321) 2021-09-10 21:58:39 +08:00
5c1081f669 *: support user defined filters for baseline capture (#26294) 2021-08-18 15:44:00 +08:00
dd34d4869f Revert "session: add physical table placement_policy in mysql schema" (#27250) 2021-08-17 15:03:59 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
bf8cfb448b session: add physical table placement_policy in mysql schema (#27054) 2021-08-13 21:05:58 +08:00
8ad5b52fb4 ddl: check multibyte character set index length (#27061) 2021-08-11 14:25:15 +08:00
a8adc4cf8e *: fix many leaks of the test case (#26909) 2021-08-06 13:55:12 +08:00
149e86ac4b *: introduce snapshot into analyze (#24575) 2021-06-25 15:17:24 +08:00
1cab530b79 session: force tidb_multi_statement_mode=OFF when mode=WARN (#25723) 2021-06-24 20:31:24 +08:00
f81ef55795 planner: solve an incompatible issue about dynamic-mode and TiFlash and enable dynamic mode by default (#25255) 2021-06-08 20:08:28 +08:00
a8b1f687e0 session: fix a bug when updating duplicate bindings (#25168) 2021-06-04 22:40:28 +08:00
c287bcb48c executor: Add plugin column to mysql.user (#24894) 2021-05-28 16:33:36 +08:00
67e63d9ffa variable: merge Bool{On,Off} with {On,Off} (#24218) 2021-04-23 13:09:54 +08:00
90d02b2eed *: add support for dynamic privileges (#22778) 2021-04-01 00:17:24 +08:00
3cf2bf9120 session: add session scope for tidb_enable_clustered_index (#23704) 2021-03-30 23:31:24 +08:00
5a4d89416b session: fix bug user privileges change after upgrade from 4.0.11 to 5.0 (#23403) 2021-03-25 13:07:23 +08:00
26ccbe972a *: create int primary key table as nonclustered by default (#23046) 2021-03-16 19:19:49 +08:00
2bea06ed23 util, types: don't let SPM be affected by charset (#23161) 2021-03-12 22:39:10 +08:00
088fe75b1c session: enable async commit in new clusters (#23274)
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2021-03-12 21:02:59 +08:00
1d99292455 *: hide the system variables tidb_track_aggregate_memory_usage (#23184) 2021-03-12 17:59:21 +08:00
276dd0e69e util: optimize the performance of restore with db (#22910) 2021-03-12 16:46:56 +08:00
e1004a2ccb *: modify the switch to control global stats (#22866) 2021-03-01 14:18:30 +08:00
f3fe4895cb statistics: support to store FMSketch and add FMSketch to column stats (#22841)
* add FMSketch to mysql.stats_histograms

* statistics: support store FMSketch and add FMSketch to histogram

* FIX UT

* Create Stats_FM_Sketch Table

* fix UT

* add some tests

* FIX ut

* move fmSketch from histogram to column.stats

* remove unused code and comments

* fix ut

* fix ut

* fix ut

* fix ut

* fix ut

* fix ut

* finish the FMSketch.MemoryUsage function

* add some comments for FMSketch.MemoryUsage function

* fix typo

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-02-23 10:39:09 +08:00
99d0b22f04 session, util: update session to use new APIs (#22652) 2021-02-19 13:10:30 +08:00
7ca1629d1a *: refactor ExecuteInternal to return single resultset (#22546) 2021-02-01 14:05:27 +08:00
e1e4ad14e5 session: fix the bug that may cause upgrading from v4.0.10 fail (#22448) 2021-01-26 14:46:36 +08:00
3dd842f50a statistics: add bucket ndv for index histogram (#20580)
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-01-13 18:24:21 +08:00
dd234b7e32 session: fix the duplicate binding case when updating bind info (#22367) 2021-01-12 16:30:59 +08:00
78529e86eb session: fix two cases when updating bind info (#22338) 2021-01-11 15:55:58 +08:00
51794e9d30 *: rewrite origin SQL with default DB for SQL bindings (#21275) 2021-01-06 16:28:29 +08:00
76054200b6 statistics: redesign the schema for mysql.stats_extended (#22033)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-01-04 17:57:24 +08:00
c40d7833b8 config, session: promise the compatibility of oom-action when upgrading (#22102) 2020-12-30 21:14:14 +08:00
27071f14d7 session/bootstrap: disable clustered index by default (#21777) 2020-12-25 15:44:07 +08:00
4fdc99b8dd session: fix didn't change current version in #21856 (#22011) 2020-12-25 11:20:59 +08:00
2139421494 session: use ExecuteInternal to execute the bootstrap SQLs (#21979)
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2020-12-24 10:10:59 +08:00
e573ed64a6 bootstrap: add mysql.user columns for parser#1121 (#21856) 2020-12-21 16:07:31 +08:00
31673c8e92 bindinfo: sync concurrent ops on mysql.bind_info from multiple tidb instances (#21629) 2020-12-18 03:51:35 +08:00
21bf3b6202 ddl: add a switch for multi schema change & make it compatible with old test cases (#21533) 2020-12-10 16:26:00 +08:00
1a2098216e session/bootstrap: Do not enable async commit and 1pc by default for new cluster (#21438)
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2020-12-03 13:50:48 +08:00
0e2f18d8f9 store, config, session: Use system variables to enable async commit and 1PC (#21365)
* add a system variable for enabling async commit

Signed-off-by: ekexium <ekexium@gmail.com>

* remove async commit enable config item

Signed-off-by: ekexium <ekexium@gmail.com>

* add a system variable for enabling 1PC

Signed-off-by: ekexium <ekexium@gmail.com>

* try to fix test

Signed-off-by: ekexium <ekexium@gmail.com>

* remove 1pc item in config

Signed-off-by: ekexium <ekexium@gmail.com>

* try to fix test

Signed-off-by: ekexium <ekexium@gmail.com>

* correct the condition to enable 1pc

Signed-off-by: ekexium <ekexium@gmail.com>

* do not enable 1pc/async commit on bootstrap if store is not tikv

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor checkAsyncCommit

Signed-off-by: ekexium <ekexium@gmail.com>

* fix test: enable async commit or 1PC by setting txn options

Signed-off-by: ekexium <ekexium@gmail.com>

* add a system variable for external consistency

Signed-off-by: ekexium <ekexium@gmail.com>

* remove external consistency config item

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor: checkXXX does not need parameters

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor: add a helper function to pessimistic_test

Signed-off-by: ekexium <ekexium@gmail.com>

* change allowed scope to global or session

Signed-off-by: ekexium <ekexium@gmail.com>

* fix external consistency test

Signed-off-by: ekexium <ekexium@gmail.com>

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-12-02 11:49:57 +08:00
59b8e7597b session: fix the bug that may cause upgrading from v4.0 fail (#21350) 2020-11-30 19:08:57 +08:00
c201eb7335 config, session: keep the default value of mem-quota-query when upgrade from 3.0 to 4.0.9+ (#21305) 2020-11-26 17:12:51 +08:00