Martijn van Oosterhout developed "tagged types" back in 2005, looks likeit went nowhere. You can search for it, it was pretty interesting.
-- Álvaro Herrera http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services