mariadb/plugin
Monty 4e9322e2ff MDEV-32203 Raise notes when an index cannot be used on data type mismatch
Raise notes if indexes cannot be used:
- in case of data type or collation mismatch (diferent error messages).
- in case if a table field was replaced to something else
  (e.g. Item_func_conv_charset) during a condition rewrite.

Added option to write warnings and notes to the slow query log for
slow queries.

New variables added/changed:

- note_verbosity, with is a set of the following options:
  basic            - All old notes
  unusable_keys    - Print warnings about keys that cannot be used
                     for select, delete or update.
  explain          - Print unusable_keys warnings for EXPLAIN querys.

The default is 'basic,explain'. This means that for old installations
the only notable new behavior is that one will get notes about
unusable keys when one does an EXPLAIN for a query. One can turn all
of all notes by either setting note_verbosity to "" or setting sql_notes=0.

- log_slow_verbosity has a new option 'warnings'. If this is set
  then warnings and notes generated are printed in the slow query log
  (up to log_slow_max_warnings times per statement).

- log_slow_max_warnings   - Max number of warnings written to
                            slow query log.

Other things:
- One can now use =ALL for any 'set' variable to set all options at once.
  For example using "note_verbosity=ALL" in a config file or
  "SET @@note_verbosity=ALL' in SQL.
- mysqldump will in the future use @@note_verbosity=""' instead of
  @sql_notes=0 to disable notes.
- Added "enum class Data_type_compatibility" and changing the return type
  of all Field::can_optimize*() methods from "bool" to this new data type.

Reviewer & Co-author: Alexander Barkov <bar@mariadb.com>
- The code that prints out the notes comes mainly from Alexander
2023-10-03 08:25:31 +03:00
..
audit_null
auth_dialog
auth_ed25519 Merge 10.3 into 10.4 2021-05-25 15:38:57 +03:00
auth_examples
auth_gssapi update C/C, fix srpm build failures on fedora 2022-09-26 11:17:53 +02:00
auth_pam Merge 10.4 into 10.5 2023-09-11 11:29:31 +03:00
auth_pipe
auth_socket Early return from auth_socket system checks on Windows 2021-09-11 01:33:29 +02:00
aws_key_management Merge branch '10.4' into 10.5 2021-07-31 23:19:51 +02:00
cracklib_password_check MDEV-18374: Add SELinux policy to cracklib_password_check packages 2023-07-26 11:13:09 +01:00
daemon_example perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00
debug_key_management
disks Merge 10.5 into 10.6 2022-09-20 16:53:20 +03:00
example_key_management
feedback Merge 10.5 into 10.6 2023-04-11 16:15:19 +03:00
file_key_management Merge 10.3 into 10.4 2022-10-25 10:04:37 +03:00
fulltext
func_test Added override to all releveant methods in Item (and a few other classes) 2021-05-19 22:27:53 +02:00
handler_socket move alloca() definition from all *.h files to one new header file 2023-03-07 11:13:20 +01:00
locale_info MDEV-22214 mariadbd.exe calls function mysqld.exe, and crashes 2020-04-10 19:05:26 +02:00
metadata_lock_info remove mysql_declare_plugin declaration from some plugins 2020-07-04 01:44:47 +02:00
qc_info Merge branch '10.5' into 10.6 2022-02-03 17:01:31 +01:00
query_response_time Merge 10.5 into 10.6 2023-02-10 13:03:01 +02:00
server_audit Merge branch '10.5' into 10.6 2022-05-10 14:01:23 +02:00
simple_password_check Merge branch '10.3' into 10.4 2022-08-02 14:15:39 +02:00
sql_errlog
test_sql_service MDEV-19275 Provide SQL service to plugins. 2020-10-02 10:19:00 +04:00
type_geom change buitin plugin types from Alpha to Stable as needed 2020-08-07 13:36:11 +02:00
type_inet MDEV-32203 Raise notes when an index cannot be used on data type mismatch 2023-10-03 08:25:31 +03:00
type_mysql_json cleanup: remove Type_collection::handler_by_name() 2023-07-04 16:37:29 +02:00
type_mysql_timestamp cleanup: remove Type_collection::handler_by_name() 2023-07-04 16:37:29 +02:00
type_test cleanup: remove Type_collection::handler_by_name() 2023-07-04 16:37:29 +02:00
user_variables Merge 10.5 into 10.6 2022-09-20 16:53:20 +03:00
userstat Merge 10.4 into 10.5 2021-04-14 11:35:39 +03:00
versioning Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
win_auth_client Merge 10.2 into 10.3 2021-07-22 18:57:54 +03:00
wsrep_info Merge branch '10.4' into 10.5 2022-10-02 14:38:13 +02:00