Kyle,
> DELETE FROM ONLY richtable WHERE trxdate < current_timestamp - interval
> '90 days';
>
> This works great. But I was wondering if there is a better or more
> compact way to go about it. (this method feels "clunky" to me)
More compact than that ?!?!?!
Maybe you should go into Perl, instead of SQL -- I think the one-liners would
suit you.
You can use the age() function, but all that funciton does is the same
calculation you have above.
--
-Josh BerkusAglio Database SolutionsSan Francisco