PostgreSQL Version Detection (Linux)

Summary
Detection of installed version of PostgreSQL. The script logs in via ssh, searches for executable 'psql' and queries the found executables via command line option '--version'.
Detection
executable version check