Add pgsql regression tests