v.21.9Improvement
SET PROFILE Now Applies Constraints for Passed Profiles
SET PROFILE now applies constraints too if they're set for a passed profile. #26730 (Vitaly Baranov).Why it matters
Previously, applying a profile usingSET PROFILE did not enforce any resource or query constraints associated with that profile. This feature ensures that when a profile is applied, all its constraints are also enforced, providing better control and security over query execution based on user profiles.How to use it
Use theSET PROFILE 'profile_name' statement in your SQL session to apply the profile along with its constraints to your queries.