fixed error in data type generation and added the size for varchar/char

sdded pg_lib file for the postgresql part.