From d575bcae9dbe337d3d2d94ee71114988705e1ebf Mon Sep 17 00:00:00 2001 From: Georgy Shelkovy Date: Thu, 6 Feb 2025 10:30:05 +0500 Subject: [PATCH] Fix postgres 12 support Commit 8f6f7e6 broke compatibility with postgres 12. This patch fixes it. --- collector.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/collector.c b/collector.c index cd2762d..3be184c 100644 --- a/collector.c +++ b/collector.c @@ -16,7 +16,9 @@ #include "funcapi.h" #include "miscadmin.h" #include "postmaster/bgworker.h" +#if PG_VERSION_NUM >= 130000 #include "postmaster/interrupt.h" +#endif #include "storage/ipc.h" #include "storage/procarray.h" #include "storage/procsignal.h" @@ -311,6 +313,19 @@ millisecs_diff(TimestampTz tz1, TimestampTz tz2) } +#if PG_VERSION_NUM < 130000 +static void +SignalHandlerForConfigReload(SIGNAL_ARGS) +{ + int save_errno = errno; + + ConfigReloadPending = true; + SetLatch(MyLatch); + + errno = save_errno; +} +#endif + /* * Main routine of wait history collector. */ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy