git: a5ef6a6d900a - main - databases/pg_failover_slots: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Oct 2026 08:45:28 UTC
The branch main has been updated by ahze:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a5ef6a6d900abcaec970868ea7051d4fac86d73f
commit a5ef6a6d900abcaec970868ea7051d4fac86d73f
Author: Michael Johnson <ahze@FreeBSD.org>
AuthorDate: 2026-10-20 08:44:43 +0000
Commit: Michael Johnson <ahze@FreeBSD.org>
CommitDate: 2026-10-20 08:44:43 +0000
databases/pg_failover_slots: New port
pg_failover_slots copies logical replication slots from a primary to its
physical standbys, so logical replication consumers can carry on after a
failover instead of losing their slot. Load it with shared_preload_libraries
on the primary and on every standby. CloudNativePG uses it for replica
clusters.
WWW: https://github.com/EnterpriseDB/pg_failover_slots
Reviewed by: acm
Approved by: acm (mentor)
Differential Revision: https://reviews.freebsd.org/D60877
---
databases/Makefile | 1 +
databases/pg_failover_slots/Makefile | 26 ++++++++++++++++++++++++++
databases/pg_failover_slots/distinfo | 3 +++
databases/pg_failover_slots/pkg-descr | 4 ++++
4 files changed, 34 insertions(+)
diff --git a/databases/Makefile b/databases/Makefile
index 6f30c3ff6d25..a186ba51e881 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -573,6 +573,7 @@
SUBDIR += pg_cron
SUBDIR += pg_dirtyread
SUBDIR += pg_ed25519
+ SUBDIR += pg_failover_slots
SUBDIR += pg_filedump
SUBDIR += pg_hashids
SUBDIR += pg_incremental
diff --git a/databases/pg_failover_slots/Makefile b/databases/pg_failover_slots/Makefile
new file mode 100644
index 000000000000..31d874731d34
--- /dev/null
+++ b/databases/pg_failover_slots/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= pg_failover_slots
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.2.1
+CATEGORIES= databases
+PKGNAMEPREFIX= postgresql${PGSQL_VER:S/.//}-
+
+MAINTAINER= ahze@FreeBSD.org
+COMMENT= PostgreSQL extension to keep logical replication slots on standbys
+WWW= https://github.com/EnterpriseDB/pg_failover_slots
+
+LICENSE= PostgreSQL
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= gmake pgsql:11+
+WANT_PGSQL= lib server
+USE_GITHUB= yes
+GH_ACCOUNT= EnterpriseDB
+
+MAKE_ENV= USE_PGXS=1
+
+PLIST_FILES= lib/postgresql/pg_failover_slots.so
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/pg_failover_slots.so
+
+.include <bsd.port.mk>
diff --git a/databases/pg_failover_slots/distinfo b/databases/pg_failover_slots/distinfo
new file mode 100644
index 000000000000..e557436a96f3
--- /dev/null
+++ b/databases/pg_failover_slots/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1792257210
+SHA256 (EnterpriseDB-pg_failover_slots-v1.2.1_GH0.tar.gz) = 7d6cb5792e91eb147d2ab10a6c45dc27aee59e7f20335640abbc3719fe37ebf3
+SIZE (EnterpriseDB-pg_failover_slots-v1.2.1_GH0.tar.gz) = 19384
diff --git a/databases/pg_failover_slots/pkg-descr b/databases/pg_failover_slots/pkg-descr
new file mode 100644
index 000000000000..e0a8076ecced
--- /dev/null
+++ b/databases/pg_failover_slots/pkg-descr
@@ -0,0 +1,4 @@
+pg_failover_slots copies logical replication slots from a primary to its
+physical standbys, so logical replication consumers can carry on after a
+failover instead of losing their slot. Load it with shared_preload_libraries
+on the primary and on every standby.