For the sake of educational purposes I have two identical instances of postgresql running on my machine.
I can easily stop the service of the instance that is running on port 5432 like this :
sudo service postgresql stop
What I like to know is that how I can stop the other instance (it is running on port 5433)