[MDEV-27545] Feature request: migrate server attributes applicable to engines to the storage engine(s) Created: 2022-01-19  Updated: 2023-10-02

Status: Open
Project: MariaDB Server
Component/s: Server
Fix Version/s: None

Type: Task Priority: Major
Reporter: Roel Van de Paar Assignee: Sergei Golubchik
Resolution: Unresolved Votes: 0
Labels: feature_request

Issue Links:
Relates
relates to MDEV-22168 Supporting multiple engines with tabl... Stalled
relates to MDEV-5271 Support engine-defined attributes per... Closed
relates to MDEV-27564 Clearly specify/indicate in the parti... Confirmed

 Description   

With the implementation of (for example) MDEV-5271 we can now add ENGINE specific attributes to individual partitions.
However, the number of ENGINE specific attributes is currently limited. For example, for InnoDB we have (only):

ha_create_table_option innodb_table_option_list[]=
{
  /* With this option user can enable page compression feature for the
  table */
  HA_TOPTION_SYSVAR("PAGE_COMPRESSED", page_compressed, compression_default),
  /* With this option user can set zip compression level for page
  compression for this table*/
  HA_TOPTION_NUMBER("PAGE_COMPRESSION_LEVEL", page_compression_level, 0, 1, 9, 1),
  /* With this option the user can enable encryption for the table */
  HA_TOPTION_ENUM("ENCRYPTED", encryption, "DEFAULT,YES,NO", 0),
  /* With this option the user defines the key identifier using for the encryption */
  HA_TOPTION_SYSVAR("ENCRYPTION_KEY_ID", encryption_key_id, default_encryption_key_id),
 
  HA_TOPTION_END
};

Other storage engines can be evaluated for individual available attributes by checking ha_create_table_option for the engine.

Some (other) attributes were added before support for engine-defined attributes was implemented,, so they were done in the server.

There are however many more attributes, currently implemented at the server level, which may be of interest. See for example https://mariadb.com/kb/en/create-table/#table-options

This feature request to move all such attributes to the storage engine level.



 Comments   
Comment by Roel Van de Paar [ 2022-01-21 ]

Ref MDEV-27564 Clearly specify/indicate in the partitioning manual which per-partition options are available (Temporary provision until this ticket is implemented)

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