Commit Graph

152 Commits

Author SHA1 Message Date
80110fbf78 *: refactor slow log format and parse slow query log to SLOW_QUERY table. (#9290) 2019-03-11 14:42:29 +08:00
2f9ab60995 infoschema: remove pfs setup_timers (#9217) 2019-02-12 18:46:39 +08:00
4c85822da9 infoschema: add table_id to table and add tidb_indexes table. (#9183) 2019-01-31 15:30:38 +08:00
59c7b69187 ddl: disallow alter table on view (#8890) 2019-01-17 00:57:21 +08:00
f522de2e8f ddl: support "or replace" option when create view (#8856) 2019-01-16 19:54:22 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
365264cd21 ddl: add restore deleted table (#7937) 2019-01-16 15:37:33 +08:00
4b98ad6f29 *: integrate plugin framework with TiDB (#9006) 2019-01-14 16:53:41 +08:00
3b40b14dc3 infoschema: move perfschema to infoschema directory, tiny refactor (#8982) 2019-01-10 13:58:32 +08:00
cef6e75be8 infoschema: add initial support for views (#8892) 2019-01-04 12:32:48 +08:00
e646276f4b planner,executor: basic support for DROP_VIEW (#8758) 2019-01-04 10:53:02 +08:00
e06c87d3c1 add an option for AddRecord and Create (#8884) 2019-01-02 11:30:53 +08:00
0c8e967858 *: provide virtual table facilities (#8657) 2018-12-26 21:15:37 +08:00
44f2c2c381 Makefile: make 'make check' faster (#8755)
* remove vet check
* make lint check on $(FILES)
2018-12-21 11:12:18 +08:00
7056bb0d32 executor, session: refine insert unsigned bigint autoIncreID (#8181) 2018-12-18 23:01:10 +08:00
ac16ad5a9b server: tweak error info(consistent with the previous handleLoadData) (#8626) 2018-12-10 13:47:57 +08:00
7ab61d85ce executor: improve SHOW commands compatibility (#8417) 2018-11-26 20:39:56 +08:00
bb1f239516 http: add http api for get db and table info that is related to the tableID (#8256)
* http: add http api for get db and table info that is related to the tableID
2018-11-22 21:52:05 +08:00
01ca08b8c2 infoschema: Add missing i_s.files columns (#8387) 2018-11-22 11:35:59 +08:00
29f14d4178 *: change default charset and collation from 'utf8 utf8_bin' to 'utf8mb4 utf8mb4_bin' (#7965) 2018-11-09 16:32:21 +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
5d1e5f1485 infoschema: fix pseudo data for profiling table (#8092) 2018-10-29 17:37:03 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
db151bb66f domain: fix memory leak for stats (#7864) 2018-10-11 10:58:22 +08:00
38f2fe0b60 executor,infoschema: check privilege for 'show processlist' (#7858)
"show processlist" requires the PROCESS privilege.
Otherwise, the user can see only his own threads.
2018-10-10 17:50:37 +08:00
c16a94d136 infoschema: engines table improved (#7831) 2018-10-08 11:07:58 +08:00
268ace81a6 Fix is.schemata to show correct charset/collation (#7751) 2018-09-20 10:48:47 +08:00
580e8573f4 infoschema: fill data length fields for tables (#7657) 2018-09-13 19:16:35 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
a6d3a18aa0 Infoschema: Refactor charsets, collations (#7647) 2018-09-12 13:21:16 +08:00
4423937549 infoschema: fix default NUMBER_SCALE value of float type (#7602) 2018-09-11 10:38:35 +08:00
69d5e36ac4 *: bump go version to 1.11 (#7491) 2018-08-29 21:48:50 +08:00
db873d68f3 infoschema: set right columns in infoschema by differ type (#7463) 2018-08-24 13:15:21 +08:00
22b2cb6196 infoschema: use the same infoschema (#7459) 2018-08-23 13:32:04 +08:00
82a6c1085c *: introduce the concept of physical ID, code refactory (#7374) 2018-08-16 10:33:24 +08:00
e43e548a34 infoschema: fix bug of column size of set and enum type (#7347) 2018-08-13 19:35:36 +08:00
0d18ac2c18 infoschema: fix bug when apply rename table diff (#7336) 2018-08-10 12:30:23 +08:00
cd458038f5 infoschema: fix information schema data race (#7318) 2018-08-08 21:55:51 +08:00
5e7aa1d97d infoschema,executor: add PROCESSLIST table to INFORMMATION_SCHEMA database (#7236) 2018-08-01 22:48:33 +08:00
6dc3f94393 table: Add a new interface in table.Table (#7167)
In some cases, We need to get the PartitionID instead of the TableID. So
we should call GetID() instead of Meta().ID.
2018-07-27 11:22:52 +08:00
419e5cfb6c infoschema: Support for showing "AUTO_INCREMENT" in "information_schema.tables" (#7037) 2018-07-14 15:04:48 +08:00
5f6e36241c support generation_expression (#7017) 2018-07-09 20:06:27 +08:00
0debbe1c64 infoschema: fix test for table rows count field (#6950) 2018-07-02 13:53:44 +08:00
0fbb980f9b stats: refine stats delta update (#6808) 2018-06-26 13:51:23 +08:00
f56e130eed ddl, parser: support 'ALTER TABLE RENAME KEY TO' syntax (#6475) 2018-06-07 13:32:17 +08:00
bab4993902 *: check privilege for 'show create table' and infoschema tables (#6426)
1. 'show create table xxx' require privilege for the table
2. 'select * from information_schema.tables' should only returns data visible to user
2018-05-02 21:05:13 -05:00
c50491b9ec infoschema: fill the TABLE_ROWS field of information_schema.TABLES with the information from statistics. (#6111) 2018-03-23 19:53:11 +08:00
b242dffeb1 infoschema: set collate and charset to null for non-varchar column type (#6099) 2018-03-22 10:20:42 +08:00
6d133085bc infoschema: fix not null flag does not work (#6048) 2018-03-19 15:10:38 +08:00
00a2d8d719 infoschema: add missing columns in collations_information_applicability (#6025) 2018-03-13 11:17:01 +08:00