[MDEV-23288] Add MariaDB_PARSER_PLUGIN Created: 2020-07-25  Updated: 2023-12-22

Status: Open
Project: MariaDB Server
Component/s: Parser, Plugins
Fix Version/s: 11.5

Type: Task Priority: Major
Reporter: Alexander Barkov Assignee: Oleksandr Byelkin
Resolution: Unresolved Votes: 0
Labels: None


 Description   

The compatibility parser for sql_mode=ORACLE takes around 4% of the overall server binary size (stripped):

30390128 mariadbd
 1226712 sql_yacc_ora.cc.o

sql_mode=ORACLE is an optional server feature, not needed by the user majority.

Let's implement MariaDB_PARSER_PLUGIN, so compatibility parsers can be compiled as loadable plugins.

When we have parser plugins, we can futher define the entire compatibility mode as a set of plugins:

  • MariaDB_PARSER_PLUGIN - one parser plugin per compatibility sql_mode
  • MariaDB_DATA_TYPE_PLUGIN - zero or more data type plugins per compatibility sql_mode
  • MariaDB_FUNCTION_PLUGIN - zero or more function plugins per compatibility sql_mode

Turning sql_mode=ORACLE into a set of plugins will be done under terms of a separate task. This task is only about adding parser plugins.


Generated at Thu Feb 08 09:21:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.