added char and smallint types for pg