v.23.12Improvement
Supports case-insensitive first argument for date_trunc function
Allows to use thedate_truncfunction with a case-insensitive first argument. Both cases are now supported:SELECT date_trunc('day', now())andSELECT date_trunc('DAY', now()). #57624 (Yarik Briukhovetskyi).
Why it matters
This feature enhances usability by removing the case sensitivity constraint on the first argument ofdate_trunc. It prevents errors and improves user experience by allowing more flexible input formats for date truncation intervals.How to use it
Use thedate_trunc function as before, but now you can write the interval argument in any case. For example:SELECT date_trunc('day', now())
SELECT date_trunc('DAY', now())