Skip to content

Glossary: PostgreSQL for Developers

date_trunc

A function that cuts a moment down to the start of a unit such as month, day, week or year, handy for grouping, as in orders per month.

Where the book teaches it

Related terms

extractinterval