Bastiaan Olij <lists(at)basenlily(dot)nl> writes:
> What I'm trying to do is get the difference between two dates either in
> minutes, hours, days, months or years.
Well, you can get the difference in seconds using EXTRACT(EPOCH FROM
timestamp_difference) and then do your own arithmetic ...
regards, tom lane