head	1.40;
access;
symbols
	pkgsrc-2026Q3:1.40.0.4
	pkgsrc-2026Q3-base:1.40
	pkgsrc-2026Q2:1.40.0.2
	pkgsrc-2026Q2-base:1.40
	pkgsrc-2026Q1:1.39.0.2
	pkgsrc-2026Q1-base:1.39
	pkgsrc-2025Q4:1.37.0.2
	pkgsrc-2025Q4-base:1.37
	pkgsrc-2025Q3:1.36.0.4
	pkgsrc-2025Q3-base:1.36
	pkgsrc-2025Q2:1.36.0.2
	pkgsrc-2025Q2-base:1.36
	pkgsrc-2025Q1:1.33.0.4
	pkgsrc-2025Q1-base:1.33
	pkgsrc-2024Q4:1.33.0.2
	pkgsrc-2024Q4-base:1.33
	pkgsrc-2024Q3:1.29.0.4
	pkgsrc-2024Q3-base:1.29
	pkgsrc-2024Q2:1.29.0.2
	pkgsrc-2024Q2-base:1.29
	pkgsrc-2024Q1:1.27.0.4
	pkgsrc-2024Q1-base:1.27
	pkgsrc-2023Q4:1.27.0.2
	pkgsrc-2023Q4-base:1.27
	pkgsrc-2023Q3:1.24.0.4
	pkgsrc-2023Q3-base:1.24
	pkgsrc-2023Q2:1.24.0.2
	pkgsrc-2023Q2-base:1.24
	pkgsrc-2023Q1:1.23.0.4
	pkgsrc-2023Q1-base:1.23
	pkgsrc-2022Q4:1.23.0.2
	pkgsrc-2022Q4-base:1.23
	pkgsrc-2022Q3:1.21.0.2
	pkgsrc-2022Q3-base:1.21
	pkgsrc-2022Q2:1.19.0.2
	pkgsrc-2022Q2-base:1.19
	pkgsrc-2022Q1:1.17.0.2
	pkgsrc-2022Q1-base:1.17
	pkgsrc-2021Q4:1.16.0.2
	pkgsrc-2021Q4-base:1.16
	pkgsrc-2021Q3:1.14.0.4
	pkgsrc-2021Q3-base:1.14
	pkgsrc-2021Q2:1.14.0.2
	pkgsrc-2021Q2-base:1.14
	pkgsrc-2021Q1:1.13.0.4
	pkgsrc-2021Q1-base:1.13
	pkgsrc-2020Q4:1.13.0.2
	pkgsrc-2020Q4-base:1.13
	pkgsrc-2020Q3:1.10.0.4
	pkgsrc-2020Q3-base:1.10
	pkgsrc-2020Q2:1.10.0.2
	pkgsrc-2020Q2-base:1.10
	pkgsrc-2020Q1:1.8.0.2
	pkgsrc-2020Q1-base:1.8
	pkgsrc-2019Q4:1.8.0.4
	pkgsrc-2019Q4-base:1.8
	pkgsrc-2019Q3:1.7.0.2
	pkgsrc-2019Q3-base:1.7
	pkgsrc-2019Q2:1.5.0.2
	pkgsrc-2019Q2-base:1.5
	pkgsrc-2019Q1:1.4.0.4
	pkgsrc-2019Q1-base:1.4
	pkgsrc-2018Q4:1.4.0.2
	pkgsrc-2018Q4-base:1.4
	pkgsrc-2018Q3:1.2.0.2
	pkgsrc-2018Q3-base:1.2
	pkgsrc-2018Q2:1.1.0.6
	pkgsrc-2018Q2-base:1.1
	pkgsrc-2018Q1:1.1.0.4
	pkgsrc-2018Q1-base:1.1
	pkgsrc-2017Q4:1.1.0.2
	pkgsrc-2017Q4-base:1.1;
locks; strict;
comment	@# @;


1.40
date	2026.05.14.16.40.36;	author ryoon;	state Exp;
branches;
next	1.39;
commitid	tKipFjQKzke3NNFG;

1.39
date	2026.02.06.10.04.25;	author wiz;	state Exp;
branches;
next	1.38;
commitid	MwQEYCXeWSFvIitG;

1.38
date	2026.01.07.08.46.21;	author wiz;	state Exp;
branches;
next	1.37;
commitid	1wQ3ICD8eebefrpG;

1.37
date	2025.10.05.19.25.47;	author js;	state Exp;
branches;
next	1.36;
commitid	U70EDQkwOmfbOpdG;

1.36
date	2025.05.06.12.07.26;	author wiz;	state Exp;
branches;
next	1.35;
commitid	XKZsX38e3wO0hQTF;

1.35
date	2025.04.19.07.57.38;	author wiz;	state Exp;
branches;
next	1.34;
commitid	8J0gu7BGAw8XqDRF;

1.34
date	2025.04.17.21.50.12;	author wiz;	state Exp;
branches;
next	1.33;
commitid	xcIXAVA292fk6sRF;

1.33
date	2024.11.25.13.00.00;	author nros;	state Exp;
branches;
next	1.32;
commitid	EFU4viMlngjXL1zF;

1.32
date	2024.11.14.22.19.12;	author wiz;	state Exp;
branches;
next	1.31;
commitid	JmuDYqwL4erbdFxF;

1.31
date	2024.11.01.12.51.57;	author wiz;	state Exp;
branches;
next	1.30;
commitid	QB4Wk02mZPuBuWvF;

1.30
date	2024.11.01.00.51.10;	author wiz;	state Exp;
branches;
next	1.29;
commitid	QT27BdVP362gvSvF;

1.29
date	2024.05.29.16.31.53;	author adam;	state Exp;
branches;
next	1.28;
commitid	n8aFyEjEVZA0JUbF;

1.28
date	2024.05.16.06.14.42;	author wiz;	state Exp;
branches;
next	1.27;
commitid	kYKPUni8AkogJbaF;

1.27
date	2023.12.21.08.16.56;	author nros;	state Exp;
branches;
next	1.26;
commitid	PID4AHmBmior8jRE;

1.26
date	2023.11.08.13.18.36;	author wiz;	state Exp;
branches;
next	1.25;
commitid	PsuHTklAIsF4bOLE;

1.25
date	2023.09.27.09.01.26;	author adam;	state Exp;
branches;
next	1.24;
commitid	UMFhupTgiVGW6oGE;

1.24
date	2023.04.19.08.09.34;	author adam;	state Exp;
branches;
next	1.23;
commitid	B8gCWhWtMX9vZGlE;

1.23
date	2022.11.23.16.19.43;	author adam;	state Exp;
branches;
next	1.22;
commitid	ju2K3LUYlTJKqQ2E;

1.22
date	2022.10.19.08.10.12;	author adam;	state Exp;
branches;
next	1.21;
commitid	GQQRLoeVZSPXQiYD;

1.21
date	2022.08.25.07.34.41;	author tnn;	state Exp;
branches;
next	1.20;
commitid	S0Gja83x5dVnqeRD;

1.20
date	2022.08.17.16.41.18;	author tnn;	state Exp;
branches;
next	1.19;
commitid	X29j1knOOozXHfQD;

1.19
date	2022.05.26.08.44.11;	author adam;	state Exp;
branches;
next	1.18;
commitid	rdMW0OyyA9BvJxFD;

1.18
date	2022.04.18.19.10.45;	author adam;	state Exp;
branches;
next	1.17;
commitid	eC9Na3jrfOOUpIAD;

1.17
date	2022.02.15.13.58.19;	author adam;	state Exp;
branches;
next	1.16;
commitid	PXXCe44DtmTFGIsD;

1.16
date	2021.12.08.16.03.49;	author adam;	state Exp;
branches;
next	1.15;
commitid	2PyWjHx5T8rqARjD;

1.15
date	2021.10.12.07.02.41;	author adam;	state Exp;
branches;
next	1.14;
commitid	gqUkv1cohuR8rucD;

1.14
date	2021.04.21.11.41.20;	author adam;	state Exp;
branches;
next	1.13;
commitid	fph0Axs0eT3az9QC;

1.13
date	2020.12.08.16.38.26;	author adam;	state Exp;
branches;
next	1.12;
commitid	d5saC9TtDTbswXyC;

1.12
date	2020.11.05.09.07.49;	author ryoon;	state Exp;
branches;
next	1.11;
commitid	VqGaBtHnBBcd5GuC;

1.11
date	2020.10.30.09.55.13;	author adam;	state Exp;
branches;
next	1.10;
commitid	RQmJU5b45MKPxUtC;

1.10
date	2020.06.02.08.23.31;	author adam;	state Exp;
branches;
next	1.9;
commitid	nisovMpvvZm3RCaC;

1.9
date	2020.05.19.12.48.12;	author adam;	state Exp;
branches;
next	1.8;
commitid	3i08MvnaBBlXLQ8C;

1.8
date	2019.10.26.23.39.04;	author adam;	state Exp;
branches;
next	1.7;
commitid	qWSv27ieqnEBZqIB;

1.7
date	2019.09.14.16.31.26;	author adam;	state Exp;
branches;
next	1.6;
commitid	Q04jQf7L0Dr0ZZCB;

1.6
date	2019.07.12.12.49.26;	author adam;	state Exp;
branches;
next	1.5;
commitid	b6d7MOljzL51OKuB;

1.5
date	2019.04.05.13.42.30;	author adam;	state Exp;
branches;
next	1.4;
commitid	j2c3ah8fbZhxfaiB;

1.4
date	2018.10.24.10.06.40;	author adam;	state Exp;
branches;
next	1.3;
commitid	69mLFOntCf6yicXA;

1.3
date	2018.10.07.06.26.27;	author adam;	state Exp;
branches;
next	1.2;
commitid	MaAonaycDmrNCZUA;

1.2
date	2018.08.14.13.41.39;	author adam;	state Exp;
branches;
next	1.1;
commitid	cAu7ZAsb1wyoL5OA;

1.1
date	2017.12.08.15.27.46;	author jperkin;	state Exp;
branches;
next	;
commitid	Tk3swgnbUsN8m6iA;


desc
@@


1.40
log
@*: Recursive revbump from security/nettle-4.0
@
text
@# $NetBSD: Makefile,v 1.39 2026/02/06 10:04:25 wiz Exp $

DISTNAME=	repmgr-5.5.0
PKGNAME=	postgresql${PGSQL_VERSION}-${DISTNAME}
PKGREVISION=	6
CATEGORIES=	databases
MASTER_SITES=	${MASTER_SITE_GITHUB:=EnterpriseDB/}
GITHUB_PROJECT=	repmgr
GITHUB_RELEASE=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://repmgr.org/
COMMENT=	Replication Manager for PostgreSQL clusters
LICENSE=	gnu-gpl-v3

DEPENDS+=	postgresql${PGSQL_VERSION}-server>=0:../../databases/postgresql${PGSQL_VERSION}-server

USE_TOOLS+=		flex gmake gsed
GNU_CONFIGURE=		yes
PKG_SYSCONFSUBDIR=	postgresql

BUILD_DEFS+=	PGUSER PGGROUP PGHOME
FILES_SUBST+=	PGUSER=${PGUSER} PGGROUP=${PGGROUP} PGHOME=${PGHOME}

DOCDIR=		share/doc/repmgr
EGDIR=		share/examples/repmgr
SMF_NAME=	postgresql-repmgr

INSTALLATION_DIRS+=	${DOCDIR} ${EGDIR}

CONF_FILES_PERMS+=	${EGDIR}/repmgr.conf.sample \
			${PKG_SYSCONFDIR}/repmgr.conf \
			${REAL_ROOT_USER} ${PGGROUP} 0640

post-install:
	${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/${DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/repmgr.conf.sample \
		${DESTDIR}${PREFIX}/${EGDIR}

PLIST_VARS+=	llvm
.include "../../mk/pgsql.buildlink3.mk"
.if !empty(PKG_OPTIONS.postgresql${PGSQL_VERSION}:Mllvm)
PLIST.llvm=	yes
.endif

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../textproc/json-c/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/readline.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.39
log
@*: recursive bump for nettle 4.0 shlib major bump
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2026/01/07 08:46:21 wiz Exp $
d5 1
a5 1
PKGREVISION=	5
@


1.38
log
@*: recursive bump for icu 78.1
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2025/10/05 19:25:47 js Exp $
d5 1
a5 1
PKGREVISION=	4
@


1.37
log
@*: rev bump for curl
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2025/05/06 12:07:26 wiz Exp $
d5 1
a5 1
PKGREVISION=	3
@


1.36
log
@*: SOEXT -> SHLIB_EXT
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2025/04/19 07:57:38 wiz Exp $
d5 1
a5 1
PKGREVISION=	2
@


1.35
log
@*: recursive bump for default Kerberos implementation switch
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2025/04/17 21:50:12 wiz Exp $
a45 7
OPSYSVARS+=	SOEXT
.if ${PGSQL_VERSION} == 16
SOEXT.Darwin=	dylib
.endif
SOEXT.*=	so
PLIST_SUBST+=	SOEXT=${SOEXT}

@


1.34
log
@*: recursive bump for icu 77 and libxml2 2.14
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2024/11/25 13:00:00 nros Exp $
d5 1
a5 1
PKGREVISION=	1
@


1.33
log
@Update datqabases/repmgr to version 5.5.0

This fixes build with postgreaql 17.

Changelog from HISTORY file:
* Support for PostgreSQL 17 added
* Fix warnings detected by the -Wshadow=compatible-local
  added in PostgreSQL 16
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2024/11/14 22:19:12 wiz Exp $
d5 1
@


1.32
log
@*: recursive bump for icu 76 shlib major version bump
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2024/11/01 12:51:57 wiz Exp $
d3 1
a3 1
DISTNAME=	repmgr-5.4.1
a4 1
PKGREVISION=	7
d6 3
a8 1
MASTER_SITES=	https://repmgr.org/download/
@


1.31
log
@*: revbump for icu downgrade
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2024/11/01 00:51:10 wiz Exp $
d5 1
a5 1
PKGREVISION=	6
@


1.30
log
@*: recursive bump for icu 76.1 shlib bump
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2024/05/29 16:31:53 adam Exp $
d5 1
a5 1
PKGREVISION=	5
@


1.29
log
@revbump after icu and protobuf updates
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2024/05/16 06:14:42 wiz Exp $
d5 1
a5 1
PKGREVISION=	4
@


1.28
log
@*: recursive bump for gnutls p11-kit option

(existing installations need the bl3.mk included, but it's now only
optionally included)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2023/12/21 08:16:56 nros Exp $
d5 1
a5 1
PKGREVISION=	3
@


1.27
log
@repmgr: uses curl
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2023/11/08 13:18:36 wiz Exp $
d5 1
a5 1
PKGREVISION=	2
@


1.26
log
@*: recursive bump for icu 74.1
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2023/09/27 09:01:26 adam Exp $
d5 1
a5 1
PKGREVISION=	1
d54 1
@


1.25
log
@repmgr: updated to 5.4.1

5.4.1
repmgrd: ensure witness node metadata is updated (Ian)

5.4.0
Support cloning replicas using pg-backup-api
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2023/04/19 08:09:34 adam Exp $
d5 1
@


1.24
log
@revbump after textproc/icu update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2022/11/23 16:19:43 adam Exp $
d3 1
a3 1
DISTNAME=	repmgr-5.3.3
a4 1
PKGREVISION=	2
d15 1
a15 1
USE_TOOLS+=		gmake flex gsed
d42 7
a48 3
#.if !empty(PKG_OPTIONS.postgresql${PGSQL_VERSION}:Mlz4)
#.include "../../archivers/lz4/buildlink3.mk"
#.endif
d51 1
@


1.23
log
@massive revision bump after textproc/icu update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2022/10/19 08:10:12 adam Exp $
d5 1
a5 1
PKGREVISION=	1
@


1.22
log
@repmgr: updated to 5.3.3

repmgr 5.3.3 is a minor release providing support for PostgreSQL 15 and a repmgrd bug fix.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2022/08/25 07:34:41 tnn Exp $
d5 1
@


1.21
log
@repmgr: needs gsed for sed -i
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2022/08/17 16:41:18 tnn Exp $
d3 1
a3 1
DISTNAME=	repmgr-5.3.2
d32 5
d42 3
a44 6

post-install:
	${INSTALL_DATA} ${WRKSRC}/README.md \
		${DESTDIR}${PREFIX}/${DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/repmgr.conf.sample \
		${DESTDIR}${PREFIX}/${EGDIR}
@


1.20
log
@repmgr: needs flex
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2022/05/26 08:44:11 adam Exp $
d15 1
a15 1
USE_TOOLS+=		gmake flex
@


1.19
log
@repmgr: updated to 5.3.2

repmgr 5.3.2 is a minor release

Bug fixes

repmgr node status: fix output with --downstream --nagios option combination.

repmgr standby clone: don't treat inability to determine the cluster size as a fatal error.

The cluster size is displayed for informational purposes and is not essential for execution of the clone operation. As the repmgr user may not have permissions for all databases in the cluster, ignore the cluster size query if it fails.

repmgrd: ensure the witness node record on the primary is always marked as active if previously marked inactive.

repmgrd: if standby_disconnect_on_failover is set, verify repmgr is a superuser before attempting to disable the WAL receiver.

If the repmgr user is a non-superuser, and a replication-only user exists, ensure redundant replication slots are dropped correctly even if the -S/--superuser option is not provided.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2022/04/18 19:10:45 adam Exp $
d15 1
a15 1
USE_TOOLS+=		gmake
@


1.18
log
@revbump for textproc/icu update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2022/02/15 13:58:19 adam Exp $
d3 1
a3 1
DISTNAME=	repmgr-5.3.1
a4 1
PKGREVISION=	1
@


1.17
log
@repmgr: updated to 5.3.1

repmgr 5.3.1 is a minor release.

A.1.1. Bug fixes

Fix upgrade path from repmgr 4.2 and 4.3 to repmgr 5.3.

repmgrd: ensure potentially open connections are closed.

In some cases, when recovering from degraded state in local node monitoring, new connection was opened to the local node without closing the old one, which will result in memory leakage.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2021/12/08 16:03:49 adam Exp $
d5 1
@


1.16
log
@revbump for icu and libffi
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2021/10/12 07:02:41 adam Exp $
d3 1
a3 1
DISTNAME=	repmgr-5.3.0
a4 1
PKGREVISION=	1
@


1.15
log
@repmgr: updated to 5.3.0

repmgr 5.3.0 is a major release.

This release provides support for PostgreSQL 14, released in September 2021.

A.1.1. Improvements

repmgr standby switchover: Improve handling of node rejoin failure on the demotion candidate.

Previously repmgr did not check whether repmgr node rejoin actually succeeded on the demotion candidate, and would always wait up to node_rejoin_timeout seconds for it to attach to the promotion candidate, even if this would never happen.

This makes it easier to identify unexpected events during a switchover operation, such as the demotion candidate being unexpectedly restarted by an external process.

Note that the output of the repmgr node rejoin operation on the demotion candidate will now be logged to a temporary file on that node; the location of the file will be reported in the error message, if one is emitted.

repmgrd: at startup, if node record is marked as "inactive", attempt to set it to "active".

This behaviour can be overridden by setting the configuration parameter repmgrd_exit_on_inactive_node to true.

repmgr node rejoin: emit rejoin target note information as NOTICE.

This makes it clearer what repmgr is trying to do.

repmgr node check: option --repmgrd added to check repmgrd status.

Add %p event notification parameter providing the node ID of the former primary for the repmgrd_failover_promote event.

A.1.2. Bug fixes

repmgr standby clone: if using --replication-conf-only on a node which was set up without replication slots, but the repmgr configuration was since changed to use_replication_slots=1, repmgr will now set slot_name in the node record, if it was previously empty.

repmgrd: rename internal shared library functions to minimize the risk of clashes with other shared libraries.

This does not affect user-facing SQL functions. However an upgrade of the installed extension version is required.

repmgrd: ensure short option -s is accepted.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2021/04/21 11:41:20 adam Exp $
d5 1
@


1.14
log
@revbump for textproc/icu
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2020/12/08 16:38:26 adam Exp $
d3 1
a3 1
DISTNAME=	repmgr-5.2.1
a4 1
PKGREVISION=	1
@


1.13
log
@repmgr: updated to 5.2.1

repmgr 5.2.1 is a minor release.

A.1.1. Improvements

repmgr standby clone: option --recovery-min-apply-delay added, overriding any setting present in repmgr.conf.

A.1.2. Bug fixes

Configuration: fix parsing of replication_type configuration parameter.

repmgr standby clone: handle case where postgresql.auto.conf is absent on the source node.

repmgr standby clone: in PostgreSQL 11 and later, an existing data directory's permissions will not be changed to 0700 if they are already set to 0750.

repmgrd: prevent termination when local node not available and standby_disconnect_on_failover is set.

repmgrd: ensure reconnect_interval is correctly handled.

repmgr witness --help: fix witness unregister description.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2020/11/05 09:07:49 ryoon Exp $
d5 1
@


1.12
log
@*: Recursive revbump from textproc/icu-68.1
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2020/10/30 09:55:13 adam Exp $
d3 1
a3 1
DISTNAME=	repmgr-5.2.0
a4 1
PKGREVISION=	1
d44 2
a46 1
.include "../../textproc/libxml2/buildlink3.mk"
@


1.11
log
@repmgr: updated to 5.2.0

repmgr 5.2.0 is a major release.

This release provides support for PostgreSQL 13, released in September 2020.

This release removes support for PostgreSQL 9.3, which was designated EOL in November 2018.

A.1.1. General improvements

Configuration: support include, include_dir and include_if_exists directives (see configuration file include directives).

repmgr standby switchover: Improve sanity check failure log output from the demotion candidate.

If database connection configuration is not consistent across all nodes, it's possible remote repmgr invocations (e.g. during switchover, from the promotion candidate to the demotion candidate) will not be able to connect to the database. This will now be explicitly reported as a database connection failure, rather than as a failure of the respective sanity check.

repmgr cluster crosscheck / repmgr cluster matrix: improve text mode output format, in particular so that node identifiers of arbitrary length are displayed correctly.

repmgr primary unregister: the --force can be provided to unregister an active primary node, provided it has no registered standby nodes.

repmgr standby clone: new option --verify-backup to run PostgreSQL's pg_verifybackup utility after cloning a standby to verify the integrity of the copied data (PostgreSQL 13 and later).

repmgr standby clone: when cloning from Barman, setting --waldir (PostgreSQL 9.6 and earlier: --xlogdir) in pg_basebackup_options will cause repmgr to create a WAL directory outside of the main data directory and symlink it from there, in the same way as would happen when cloning using pg_basebackup.

repmgr standby follow: In PostgreSQL 13 and later, a standby no longer requires a restart to follow a new upstream node.

The old behaviour (always restarting the standby to follow a new node) can be restored by setting the configuration file parameter standby_follow_restart to true.

repmgr node rejoin: enable a node to attach to a target node even the target node has a lower timeline (PostgreSQL 9.6 and later).

repmgr node rejoin: in PostgreSQL 13 and later, support pg_rewind's ability to automatically run crash recovery on a PostgreSQL instance which was not shut down cleanly.

repmgr node check: option --db-connection added to check if repmgr can connect to the database on the local node.

repmgr node check: report database connection error if the --optformat was provided.

Improve handling of pg_control read errors.

It is now possible to dump the contents of repmgr metadata tables with pg_dump.

A.1.2. repmgrd enhancements

Following additional parameters can be provided to failover_validation_command:

%n: node ID
%a: node name
%v: number of visible nodes
%u: number of shared upstream nodes
%t: total number of nodes
Configuration option always_promote (default: false) to control whether a node should be promoted if the repmgr metadata is not up-to-date on that node.

A.1.3. Bug fixes

repmgr standby clone: fix issue with cloning from Barman where the tablespace mapping file was not flushed to disk before attempting to retrieve files from Barman.

repmgr node rejoin: ensure that when verifying a standby node has attached to its upstream, the node has started streaming before confirming the success of the rejoin operation.

repmgrd: ensure primary connection is reset if same as upstream.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2020/06/02 08:23:31 adam Exp $
d5 1
@


1.10
log
@Revbump for icu
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2020/05/19 12:48:12 adam Exp $
d3 1
a3 1
DISTNAME=	repmgr-5.1.0
a4 1
PKGREVISION=	1
@


1.9
log
@repmgr: updated to 5.1.0

5.1.0

repmgr: remove BDR 2.x support
repmgr: don't query upstream's data directory
repmgr: rename --recovery-conf-only to --replication-conf-only
repmgr: ensure postgresql.auto.conf is created with correct permissions
repmgr: minimize requirement to check upstream data directory location
  during "standby clone"
repmgr: warn about missing pg_rewind prerequisites when excuting
  "standby clone"
repmgr: add --upstream option to "node check"
repmgr: report error code on follow/rejoin failure due to non-available
  replication slot
repmgr: ensure "node rejoin" checks for available replication slots
repmgr: improve "standby switchover" completion checks
repmgr: add replication configuration file ownership check to
  "standby switchover"
repmgr: check the demotion candidate's registered repmgr.conf file can
  be found
repmgr: consolidate replication connection code
repmgr: check permissions for "pg_promote()" and fall back to pg_ctl
  if necessary
repmgr: in --dry-run mode, display promote command which will be used
repmgr: enable "service_promote_command" in PostgreSQL 12
repmgr: accept option -S/--superuser for "node check"
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2019/10/26 23:39:04 adam Exp $
d5 1
@


1.8
log
@repmgr: updated to 5.0.0

repmgr 5.0 is a major release.
* Configuration file parsing has been made stricter
* Some "repmgr daemon ..." commands renamed
* Some deprecated command line options removed
* Support for PostgreSQL 12 added.
* The repmgr configuration file is now parsed using flex, meaning it will be parsed in the same way as PostgreSQL parses its own configuration files.
* repmgr standby clone: checks for availability of the repmgr extension on the upstream node have been improved and error messages improved.
* When executing repmgr remotely, if the repmgr log level was explicitly provided (with -L/--log-level), that log level will be passed to the remote repmgr.
* Bug fixes
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2019/09/14 16:31:26 adam Exp $
d3 1
a3 1
DISTNAME=	repmgr-5.0.0
@


1.7
log
@repmgr: PLIST fix for PostgreSQL with/without LLVM
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2019/07/12 12:49:26 adam Exp $
d3 1
a3 1
DISTNAME=	repmgr-4.4.0
@


1.6
log
@repmgr: updated to 4.4.0

4.4.0:
repmgr client enhancements
--------------------------

repmgr standby clone: prevent a standby from being cloned from a witness server (PostgreSQL 9.6 and later only).

repmgr witness register: prevent a witness server from being registered on the replication cluster primary server (PostgreSQL 9.6 and later only).

Registering a witness on the primary node would defeat the purpose of having a witness server, which is intended to remain running even if the cluster's primary goes down.

repmgr standby follow: note that an active, reachable cluster primary is required for this command; and provide a more helpful error message if no reachable primary could be found.

repmgr: when executing repmgr standby switchover, if --siblings-follow is not supplied, list all nodes which repmgr considers to be siblings (this will include the witness server, if in use), and which will remain attached to the old primary.

repmgr: when executing repmgr standby switchover, ignore nodes which are unreachable and marked as inactive. Previously it would abort if any node was unreachable, as that means it was unable to check if repmgrd is running.

However if the node has been marked as inactive in the repmgr metadata, it's reasonable to assume the node is no longer part of the replication cluster and does not need to be checked.

repmgr standby switchover and repmgr standby promote: when executing with the --dry-run option, continue checks as far as possible even if errors are encountered.

repmgr standby promote: add --siblings-follow (similar to repmgr standby switchover).

repmgr daemon status: make output similar to that of repmgr cluster show for consistency and to make it easier to identify nodes not in the expected state.

repmgr cluster show: display each node's timeline ID (PostgreSQL 9.6 and later only).

repmgr cluster show and repmgr daemon status: show the upstream node name as reported by each individual node - this helps visualise situations where the cluster is in an unexpected state, and provide a better idea of the actual cluster state.

For example, if a cluster has divided somehow and a set of nodes are following a new primary, when running either of these commands, repmgr will now show the name of the primary those nodes are actually following, rather than the now outdated node name recorded on the other side of the "split". A warning will also be issued about the unexpected situation.

repmgr cluster show and repmgr daemon status: check if a node is attached to its advertised upstream node, and issue a warning if the node is not attached.


repmgrd enhancements
--------------------

On the primary node, repmgrd is now able to monitor standby connections and, if the number of nodes connected falls below a certain (configurable) value, execute a custom script.

This provides an additional method for fencing an isolated primary node, and/or taking other action if one or more standys become disconnected.

See section Monitoring standby disconnections on the primary node for more details.

In a failover situation, repmgrd nodes on the standbys of the failed primary are now able confirm among themselves that none can still see the primary before continuing with the failover.

The repmgr.conf option primary_visibility_consensus must be set to true to enable this functionality.

See section Primary visibility consensus for more details.


Bug fixes
---------
Ensure BDR2-specific functionality cannot be used on BDR3 and later.

The BDR support present in repmgr is for specific BDR2 use cases.

repmgr: when executing repmgr standby clone in --dry-run mode, ensure provision of the --force option does not result in an existing data directory being modified in any way.

repmgr: when executing repmgr primary register with the --force option, if another primary record exists but the associated node is unreachable (or running as a standby), set that node's record to inactive to enable the current node to be registered as a primary.

repmgr: when executing repmgr standby clone with the --upstream-conninfo, ensure that application_name is set correctly in primary_conninfo.

repmgr: when executing repmgr standby switchover, don't abort if one or more nodes are not reachable and they are marked as inactive.

repmgr: canonicalize the data directory path when parsing the configuration file, so the provided path matches the path PostgreSQL reports as its data directory. Otherwise, if e.g. the data directory is configured with a trailing slash, repmgr node check --data-directory-config will return a spurious error.

repmgrd: fix memory leak which occurs while the monitored PostgreSQL node is not running.


Other
-----
The repmgr documentation has been converted to DocBook XML format, as currently used by the main PostgreSQL project. This means it can now be built against any PostgreSQL version from 9.5 (previously it was not possible to build the documentation against PostgreSQL 10 or later), and makes it easier to provide the documentation in other formats such as PDF.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2019/04/05 13:42:30 adam Exp $
d32 6
a43 1
.include "../../mk/pgsql.buildlink3.mk"
@


1.5
log
@repmgr: updated to 4.3.0

4.3:
repmgr: add "daemon (start|stop)" command
repmgr: add --version-number command line option
repmgr: add --compact option to "cluster show"
repmgr: cluster show - differentiate between unreachable nodes
  and nodes which are running but rejecting connections
repmgr: add --dry-run option to "standby promote"
repmgr: add "node check --data-directory-config"
repmgr: prevent potential race condition in "standby switchover"
  when checking received WAL location
repmgr: ensure "standby switchover" verifies repmgr can read the
  data directory on the demotion candidate
repmgr: ensure "standby switchover" verifies replication connection
  exists
repmgr: add sanity check for correct extension version
repmgr: ensure "witness register --dry-run" does not attempt to read node
  tables if repmgr extension not installed
repmgr: ensure "standby register" fails when --upstream-node-id is the
  same as the local node ID
repmgrd: check binary and extension major versions match
repmgrd: on a cascaded standby, don't fail over if "failover=manual";
repmgrd: don't consider nodes where repmgrd is not running as promotion
  candidates
repmgrd: add option "connection_check_type"
repmgrd: improve witness monitoring when primary node not available
        repmgrd: handle situation where a primary has unexpectedly appeared
          during failover
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2018/10/24 10:06:40 adam Exp $
d3 1
a3 1
DISTNAME=	repmgr-4.3.0
d34 1
a34 1
	    ${DESTDIR}${PREFIX}/${DOCDIR}
d36 1
a36 1
	    ${DESTDIR}${PREFIX}/${EGDIR}
@


1.4
log
@repmgr: updated to 4.2

repmgr 4.2 is a major release, with the main new feature being the ability to pause repmgrd, e.g. during planned maintenance operations. Various other usability enhancements and a couple of bug fixes are also included.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2018/10/07 06:26:27 adam Exp $
d3 1
a3 1
DISTNAME=	repmgr-4.2.0
@


1.3
log
@repmgr: updated to 4.1.1

repmgr 4.1.1 contains a number of usability enhancements and bug fixes.

We recommend upgrading to this version as soon as possible. This release can be installed as a simple package upgrade from repmgr 4.0 ~ 4.1.0; repmgrd (if running) should be restarted. See Upgrading repmgr for more details.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2018/08/14 13:41:39 adam Exp $
d3 1
a3 1
DISTNAME=	repmgr-4.1.1
@


1.2
log
@repmgr: updated to 4.1.0

4.1.0:
Configuration file changes
* Default for log_level is now INFO. This produces additional informative log output, without creating excessive additional log file volume, and matches the setting assumed for examples in the documentation.
* recovery_min_apply_delay now accepts a minimum value of zero

repmgr enhancements
* repmgr: always exit with an error if an unrecognised command line option is provided. This matches the behaviour of other PostgreSQL utilities such as psql.
* repmgr: add -q/--quiet option to suppress non-error output.
* repmgr cluster show, repmgr node check and repmgr node status return non-zero exit code if node status issues detected.
* Add --csv output option for repmgr cluster event.
* repmgr witness unregister can be run on any node, by providing the ID of the witness node with --node-id.
* repmgr standby switchover will refuse to run if an exclusive backup is taking place on the current primary.

repmgrd enhancements
repmgrd: create a PID file by default. For details, see repmgrd's PID file.
repmgrd: daemonize process by default. In case, for whatever reason, the user does not wish to daemonize the process, provide --daemonize=false.

Bug fixes
repmgr standby register --wait-sync: fix behaviour when no timeout provided.
repmgr cluster cleanup: add missing help options.
Ensure witness node follows new primary after switchover.
repmgr node check and repmgr node status: fix witness node handling.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2017/12/08 15:27:46 jperkin Exp $
d3 1
a3 1
DISTNAME=	repmgr-4.1.0
@


1.1
log
@Import repmgr-4.0.1 as databases/repmgr

Based on package provided by Matthieu Guegan in joyent/pkgsrc#49

repmgr is a suite of open-source tools to manage replication and failover
within a cluster of PostgreSQL servers.  It enhances PostgreSQL's built-in
replication capabilities with utilities to set up standby servers, monitor
replication, and perform administrative tasks such as failover or
switchover operations.
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 1
DISTNAME=	repmgr-4.0.1
d6 1
a6 3
MASTER_SITES=	${MASTER_SITE_GITHUB:=2ndQuadrant/}
GITHUB_PROJECT=	repmgr
GITHUB_TAG=	v${PKGVERSION_NOREV}
d9 2
a10 2
HOMEPAGE=	https://github.com/2ndQuadrant/repmgr/
COMMENT=	The Most Popular Replication Manager for PostgreSQL (Postgres)
d15 3
a17 4
GNU_CONFIGURE=	yes
USE_TOOLS+=	gmake

SMF_NAME=	postgresql-repmgr
d24 1
a24 1
PKG_SYSCONFSUBDIR=	postgresql
@

