I'm a little confused about using trunc()
function in postgresql.
As far as I know, if I want to trunc date, I need to use the date_trunc()
function in posgresql.
It looks like this: select date_trunc('month',now())
.
But I found that there's a trunc()
function in pg_catalog
. If I use it like ths: select trunc(now(),'MM')
. I will get the same result. This usage is similar to oracle.
I'm not sure if this is a built-in functions in postgre 13.3.
I've done some researchs on the internet, but I cannot see any description about these 2900+ functions in pg_catalog
.