Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use sysctl(3) on BSD sysctlbyname(3) is a convenience wrapper for sysctl(3) that is implemented on FreeBSD and MacOS, but not on OpenBSD. Include sys/param.h to ensure that BSD is defined. Tests on OpenBSD: - make check - initialize a monitor node and 2 nodes - perform failover Tests on MacOS: - make check * Use 64-bit sysctl flags to detect total RAM Tested on - MacOS 11.4 - FreeBSD 11.4 - OpenBSD 6.9 PG_AUTOCTL_DEBUG=1 pg_autoctl do pgsetup tune --pgdata /tmp -vv Co-authored-by: Dimitri Fontaine <dimitri@citusdata.com>
- Loading branch information