From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pgstat: Prepare to use mechanism for truncated rels also for dro
Date: Mon, 20 Sep 2021 21:22:25 +0000
Message-ID: <E1mSQk5-0006uQ-Cb@gemulon.postgresql.org> (raw)
pgstat: Prepare to use mechanism for truncated rels also for droppped rels.
The upcoming shared memory stats patch drops stats for dropped objects in a
transactional manner, rather than removing them later as part of vacuum. This
means that stats for DROP inside a transaction needs to handle aborted
(sub-)transactions similar to TRUNCATE: The stats up to the DROP should be
restored.
Rename the existing infrastructure in preparation.
Author: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/20210405092914.mmxqe7j56lsjfsej@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/6b9501660c9384476ca9a04918f5cf94379e419e
Modified Files
--------------
src/backend/postmaster/pgstat.c | 93 ++++++++++++++++++++++-------------------
src/include/pgstat.h | 12 +++---
2 files changed, 57 insertions(+), 48 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andres@anarazel.de
Subject: Re: pgsql: pgstat: Prepare to use mechanism for truncated rels also for dro
In-Reply-To: <E1mSQk5-0006uQ-Cb@gemulon.postgresql.org>
References: <E1mSQk5-0006uQ-Cb@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox