Better generic method of finding all installed Postgres versions?

Поиск
Список
Период
Сортировка
От Ron
Тема Better generic method of finding all installed Postgres versions?
Дата
Msg-id 4e5a0532-c1f9-d3ef-d060-d3100a003f02@gmail.com
обсуждение исходный текст
Список pgsql-admin
pg_lscluster is great, but it's Debian/Ubuntu specific.

$ realfs=$(df -x tmpfs -x devtmpfs | tail -n +2 | awk '{print $6;}' | xargs)
$ find ${realfs} -xdev -type f -name pg_ctl |& grep -v "Permission denied"

This works on both Ubuntu 18.04 and RHEL 8.3 (the only systems I have access 
to), but wonder if there's a Better Way.  (I didn't grep  netstat because 
the cluster might not be running.)

Thanks

-- 
Angular momentum makes the world go 'round.



В списке pgsql-admin по дате отправления:

Предыдущее
От: Ron
Дата:
Сообщение: Re: LDAP and roles
Следующее
От: Khuram Rafique
Дата:
Сообщение: How to configure this