Let ϕ and ψ be analytic self-maps of the open unit disk. Each of them induces a composition operator, Cϕ and Cψ respectively, acting between weighted Bergman spaces of infinite order. We show that the difference Cϕ−Cψ is compact if and only if both operators are compact or both operators are not compact and the pseudohyperbolic distance of the functions ϕ and ψ tends to zero if ∣ϕ(z)∣→1 or ∣ψ(z)∣→1.