Can someone give a detailed explanation of how the postgresql
service(s) works on Ubuntu [16.04]? The behavior that leads me to ask is the following. I use the command sudo systemctl start postgresql
to start my postgresql service. When I run systemctl list-units | grep post
I see
UNIT LOAD ACTIVE SUB DESCRIPTION
postgresql.service loaded active exited PostgreSQL RDBMS
postgresql@9.6-main.service loaded active running PostgreSQL Cluster 9.6-main
system-postgresql.slice loaded active active system-postgresql.slice
and when I run sudo systemctl stop postgresql
both postgresql.service
and postgresql@9.6-main.service
disappear. What is each of these three services doing?