maria:bb-10.11-MDEV-29104

Last commit made on 2022-09-21
Get this branch:
git clone -b bb-10.11-MDEV-29104 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.11-MDEV-29104
Repository:
lp:maria

Recent commits

4f07e31... by Oleg Smirnov

MDEV-29104 Optimize queries to INFORMATION_SCHEMA.PARAMETERS/ROUTINES

For queries like
    "SELECT * FROM INFORMATION_SCHEMA.PARAMETERS
      WHERE SPECIFIC_NAME='proc_name'"
and
    "SELECT * FROM INFORMATION_SCHEMA.ROUTINES
      WHERE ROUTINE_NAME='proc_name'"
there is a possibility to avoid loading a stored procedure code and
parsing it to retrieve parameters.
If the name of the procedure/function is specified explicitly then
it is possible to filter out routines that do not match at
an early stage.

a7f2b2d... by Oleg Smirnov

MDEV-29550 Fix Valgrind/MSAN uninitialised value errors

7342ba9... by Oleg Smirnov

MDEV-20609 Full table scan in INFORMATION_SCHEMA.PARAMETERS/ROUTINES

Queries to INFORMATION_SCHEMA.PARAMETERS and ROUTINES tables are always
performed using full index scan of the mysql.proc primary key
on fields (`db`,`name`,`type`). This can be done in a much more effective
way if `db` and `name` field values can be derived from the WHERE statement,
like here:
  SELECT * FROM INFORMATION_SCHEMA.PARAMETERS
    WHERE SPECIFIC_SCHEMA = 'test' AND SPECIFIC_NAME = 'my_func'
or here:
  SELECT * FROM information_schema.ROUTINES
    WHERE ROUTINE_SCHEMA='test' AND ROUTINE_NAME='my_func'.

In such cases index range scan may be employed instead of full index
scan. This commit makes the server retrieve lookup field values from
the SQL statement and perform index range scan instead of full index
scan if possible.

3ec4241... by Marko Mäkelä

Merge 10.10 into 10.11

6978bcb... by Marko Mäkelä

Merge 10.9 into 10.10

fada4cb... by Marko Mäkelä

Merge 10.8 into 10.9

71fc31b... by Marko Mäkelä

Merge 10.7 into 10.8

0c0b697... by Marko Mäkelä

Merge 10.6 into 10.7

1985204... by Marko Mäkelä

Merge 10.5 into 10.6

38d36b5... by Marko Mäkelä

Merge 10.4 into 10.5