Using templates for defining SQL structs for PostgreSQL.