v.25.4Improvement

Allow creating and inserting into temporary tables

Allow creating and inserting into temporary tables when disable_insertion_and_mutation is on. #77901 (Xu Jia).
Allows creation and insertion into temporary tables even when the setting disable_insertion_and_mutation is enabled.

Why it matters

This feature provides flexibility by permitting users to work with temporary tables for intermediate data processing without being blocked by the global disable_insertion_and_mutation setting. It enables maintaining restrictions on permanent table modifications while still allowing necessary temporary operations.

How to use it

Ensure the disable_insertion_and_mutation setting is enabled to restrict modifications on permanent tables. You can still create and insert data into temporary tables as usual within your sessions using CREATE TEMPORARY TABLE and INSERT INTO statements.