age ( timestamp, timestamp ) → intervalSubtract arguments, producing a “symbolic” result that uses years and months, rather than just days
age(timestamp '2001-04-10', timestamp '1957-06-13') → 43 years 9 mons 27 days
Subtract arguments, producing a “symbolic” result that uses years and months, rather than just days
age ( timestamp, timestamp ) → intervalSubtract arguments, producing a “symbolic” result that uses years and months, rather than just days
age(timestamp '2001-04-10', timestamp '1957-06-13') → 43 years 9 mons 27 days
age ( timestamp ) → intervalSubtract argument from
current_date (at midnight)age(timestamp '1957-06-13') → 62 years 6 mons 10 days
age ( xid ) → integerReturns the number of transactions between the supplied transaction id and the current transaction counter.
Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source