pgstat: drop subscription stats regardless of slot, fix comment
authorAndres Freund <andres@anarazel.de>
Wed, 6 Jul 2022 15:46:04 +0000 (08:46 -0700)
committerAndres Freund <andres@anarazel.de>
Wed, 6 Jul 2022 15:49:33 +0000 (08:49 -0700)
commit596172260a6ddc78be85d929c309da3c941fe683
treee37320add4a050a7b87222cbbe5c007cf72b86cf
parent30efc3b5a3648bc64c7a8b058030756bb81292e1
pgstat: drop subscription stats regardless of slot, fix comment

There's no reason anymore to only drop subscription stats if associated with a
slot, now that stats drops are transactional. Additionally, the comment
referring to autovacuum cleaning up stats was clearly outdated.

Author: Masahiko Sawada <sawada.mshk@gmail.com>
Discussion: https://postgr.es/m/CAD21AoAwiby3HeJE7vJe16Gr75RFfJ640dyHqvsiUhyKJTXPtw@mail.gmail.com
Backpatch: 15-
src/backend/commands/subscriptioncmds.c