Re:Installing and Using PostgreSQL Modules
by deafbybeheading on Tuesday July 03, 2012 @03:58AM
(#4193033)
Indeed. User-defined aggregates[1] are another great tool, and complement user-defined types very nicely.
But PostgreSQL lets you go in the other direction, pushing type logic closer to the actual data store. This makes data storage smarter and can with a bit of judicious footwork simplify your application code.