Add support for custom pgsql dialect