I have installed postgres 9.6, If you type in terminal psql -V or psql --version, you know which postgresql version you have installed, however, if you type sudo apt-cache policy postgresql, it appears that you do not have installed postgresql and that the candidate is postgresql 10.
Do you know why this last command does not recognize postgres 9.6 install and which is the difference?
Thanks is advance
apt-cache
looks at actual package containing an app and things, it doesn't search by "app name". Package names often have a version attached to it. So tryapt-cache policy postgresql9
orpostgresql9.6