[MDEV-28485] make tmpdir a session modifiable variable Created: 2022-05-06  Updated: 2022-05-06

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

Type: Task Priority: Major
Reporter: Sergei Golubchik Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-25447 MyRocks use "tmpdir" rather than usin... Closed

 Description   

Currently, @@tmpdir is a read-only variable. Sometimes a DBA might need to run a particularly disk-consuming operation and doesn't want to exhaust all usual /tmp space. In these cases an ability to change @@session.tmpdir would be quite handy.

Because the user case is real and @@tmpdir is read-only, engines work around it by implementing their own tmpdir-like variables. For example, there is @@innodb_tmpdir and @@rocksdb_tmpdir.

  • changing @@tmpdir, even a session value, must require FILE privilege.
  • global @@tmpdir can be set to a list of directories to be used in a round-robin fashion. I don't think we necessarily have to support it for a session variable, allowing only one dir there should be enough.

Generated at Thu Feb 08 10:01:07 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.