summaryrefslogtreecommitdiff
path: root/sql/sql_show.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2021-01-21 16:40:36 +0100
committerSergei Golubchik <serg@mariadb.org>2021-01-22 00:04:31 +0100
commit4e503aec7feaeb2297035f565ca92c98d4557577 (patch)
tree35574fc7d97078a9dd7f92615efa959551271182 /sql/sql_show.h
parent61feb568bbbfc3ea68060bf9f59b4c3eeb999ca0 (diff)
downloadmariadb-git-4e503aec7feaeb2297035f565ca92c98d4557577.tar.gz
MDEV-24593 Signal 11 when group by primary key of table joined to information_schema.columns
I_S tables were materialized too late, an attempt to use table statistics before the table was created caused a crash. Let's move table creation up. it only needs read_set to be calculated properly, this happens in JOIN::optimize_inner(), after semijoin transformation. Note that tables are not populated at that point, so most of the statistics would make no sense anyway. But at least field sizes will be correct. And it won't crash.
Diffstat (limited to 'sql/sql_show.h')
-rw-r--r--sql/sql_show.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_show.h b/sql/sql_show.h
index 39cbc35230a..c1845d8c1b3 100644
--- a/sql/sql_show.h
+++ b/sql/sql_show.h
@@ -238,6 +238,7 @@ public:
};
bool optimize_schema_tables_reads(JOIN *join);
+bool optimize_schema_tables_memory_usage(List<TABLE_LIST> &tables);
/* Handle the ignored database directories list for SHOW/I_S. */
bool ignore_db_dirs_init();