repmgr: truncate version string if necessary

Some distributions may add extra information to PG_VERSION after
the actual version number (e.g. "10.4 (Debian 10.4-2.pgdg90+1)"), so
copy the version number string up until the first space is found.

GitHub #490.
This commit is contained in:
Ian Barwick
2018-08-14 09:48:46 +09:00
parent d5064bdc02
commit 9ae9d31165
2 changed files with 23 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
4.1.1 2018-??-??
repmgr: truncate version string, if necessary; GitHub #490 (Ian)
repmgrd: ensure that sending SIGHUP always results in the log file
being reopened; GitHub #485 (Ian)
repmgrd: report version number *after* logger initialisation; GitHub #487 (Ian)