CREATE TYPE po_dates AS ( po_isssued_date timestamptz, discount_last_date timestamptz, net_date timestamptz );
What advantage does combining these three values into a custom composite type give you rather than just storing directly? Are you going to reuse this po_dates type on many tables?