aboutsummaryrefslogtreecommitdiff
path: root/src/backend/jit/llvm/llvmjit.c
diff options
context:
space:
mode:
authorMasahiko Sawada <msawada@postgresql.org>2023-07-05 14:49:58 +0900
committerMasahiko Sawada <msawada@postgresql.org>2023-07-05 14:49:58 +0900
commitbe8cae7e2f03f35a049e2b1f1113860fea6d0212 (patch)
tree1ea4bc60f0da35674ed202443a9438559bb15f82 /src/backend/jit/llvm/llvmjit.c
parenteb27d3dc88879cb148ae0365394aae0ab84fa1a7 (diff)
downloadpostgresql-be8cae7e2f03f35a049e2b1f1113860fea6d0212.tar.gz
postgresql-be8cae7e2f03f35a049e2b1f1113860fea6d0212.zip
pgstat: fix subscription stats entry leak.
Commit 7b64e4b3 taught DropSubscription() to drop stats entry of subscription that is not associated with a replication slot for apply worker at DROP SUBSCRIPTION but missed covering the case where the subscription is not associated with replication slots for both apply worker and tablesync worker. Also add a test to verify that the stats for slot-less subscription is removed at DROP SUBSCRIPTION time. Backpatch down to 15. Author: Masahiko Sawada Reviewed-by: Nathan Bossart, Hayato Kuroda, Melih Mutlu, Amit Kapila Discussion: https://postgr.es/m/CAD21AoB71zkP7uPT7JDPsZcvp0749ExEQnOJxeNKPDFisHar+w@mail.gmail.com Backpatch-through: 15
Diffstat (limited to 'src/backend/jit/llvm/llvmjit.c')
0 files changed, 0 insertions, 0 deletions