Skip to main content
Creates settings profiles that can be assigned to a user or a role. Syntax:
ON CLUSTER clause allows creating settings profiles on a cluster, see Distributed DDL. CREATE SETTINGS PROFILE requires the CREATE SETTINGS PROFILE privilege. OR REPLACE throws away an existing profile of the same name, including which roles it applies to, so it additionally requires the DROP SETTINGS PROFILE privilege. The DROP SETTINGS PROFILE privilege is required whether or not the profile already exists, so the statement cannot be used to find out which profiles exist.

Example

Create a user:
Create the max_memory_usage_profile settings profile with value and constraints for the max_memory_usage setting and assign it to user robin:
Last modified on September 6, 2026