Application of a Riesz-type formula to weighted Bergman space