Improved support for PostgreSQL