pgtype is a module for procapi which implements marshalling between API and nonstandart postgresql types