fix pgsql file ext issue