pgsql: Use fabsf() instead of Abs() or fabs() where appropriate

2022-10-08 Thread Peter Eisentraut
Use fabsf() instead of Abs() or fabs() where appropriate This function is new in C99. Reviewed-by: Zhang Mingli Reviewed-by: Tom Lane Discussion: https://www.postgresql.org/message-id/flat/4beb42b5-216b-bce8-d452-d924d5794c63%40enterprisedb.com Branch -- master Details --- https://gi

pgsql: pgstat: Prevent stats reset from corrupting slotname by removing

2022-10-08 Thread Andres Freund
pgstat: Prevent stats reset from corrupting slotname by removing slotname Previously PgStat_StatReplSlotEntry contained the slotname, which was mainly used when writing out the stats during shutdown, to identify the slot in the serialized data (at runtime the index in ReplicationSlotCtl->replicati

pgsql: pgstat: Prevent stats reset from corrupting slotname by removing

2022-10-08 Thread Andres Freund
pgstat: Prevent stats reset from corrupting slotname by removing slotname Previously PgStat_StatReplSlotEntry contained the slotname, which was mainly used when writing out the stats during shutdown, to identify the slot in the serialized data (at runtime the index in ReplicationSlotCtl->replicati