Fix tests for php(s) or hhvm without pgsql extension