Detect and notify users that a postgres restart is required after a postgres upgrade
Summary
Part of the ongoing work for #3388 (closed)
Detect that the running postgresql version is different than the binaries available on the OS. And warn the user that they should restart during the reconfigure run.
Test Plan
- Package with current postgresl version
- No warning message on fresh install
- No warning message if upgrading without change
- EE package with geo-postgres enabled on current version
- No warning message on fresh install
- No warning message if upgrading without change
- Package with upgraded postgresl version
- No warning message on fresh install
- No warning on upgrade from current stable if postgres disabled
- No warning on upgrade from current stable if postgres stopped
- Reconfigure does warn on upgrade from current stable
- Reconfigure stops warning after postgres has been restarted on upgrade from current stable
- EE Package with geo-postgres enabled on a newer postgres version
- No warning message on fresh install
- No warning on upgrade from current stable if geo-postgres disabled
- No warning on upgrade from current stable if geo-postgres stopped
- Reconfigure does warn on upgrade from current stable
- Reconfigure stops warning after geo-postgres has been restarted on upgrade from current stable