added more types to pgsql schema, better detection

fixes #3578