How do you extract the number of days from a column of type daterange? Is it possible?
I tried
select age(daterange('2018-01-01', '2018-02-01'));
But it fails, I also tried casting to int with out luck. I reviewed the docs but I was unable to find any function that could acomplish this in the range types.