aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-07-01 09:35:36 +0900
committerMichael Paquier <michael@paquier.xyz>2024-07-01 09:35:36 +0900
commitb19db55bd687af243dd1edf021ffb166e5270a06 (patch)
tree668507054a81019c77193cb8af534ff785785847 /src/backend/utils
parent1029bdec2d641f378eaa59f00a93b136f191f3c7 (diff)
downloadpostgresql-b19db55bd687af243dd1edf021ffb166e5270a06.tar.gz
postgresql-b19db55bd687af243dd1edf021ffb166e5270a06.zip
Remove PgStat_KindInfo.named_on_disk
This field is used to track if a stats kind can use a custom format representation on disk when reading or writing its stats case. On HEAD, this exists for replication slots stats, that need a mapping between an internal index ID and the slot names. named_on_disk is currently used nowhere and the callbacks to_serialized_name and from_serialized_name are in charge of checking if the serialization of the stats data should apply, so let's remove it. Reviewed-by: Andres Freund Discussion: https://postgr.es/m/ZmKVlSX_T5YvIOsd@paquier.xyz
Diffstat (limited to 'src/backend/utils')
-rw-r--r--src/backend/utils/activity/pgstat.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/backend/utils/activity/pgstat.c b/src/backend/utils/activity/pgstat.c
index dcc2ad8d954..44f0d3ede72 100644
--- a/src/backend/utils/activity/pgstat.c
+++ b/src/backend/utils/activity/pgstat.c
@@ -307,7 +307,6 @@ static const PgStat_KindInfo pgstat_kind_infos[PGSTAT_NUM_KINDS] = {
.fixed_amount = false,
.accessed_across_databases = true,
- .named_on_disk = true,
.shared_size = sizeof(PgStatShared_ReplSlot),
.shared_data_off = offsetof(PgStatShared_ReplSlot, stats),