postgres provider: don't try to detect geometry type or srid, if it's already known (fixes #9421)