When I execute in terminal
psql -V
It outputs:
psql (PostgreSQL) 13.2 (Ubuntu 13.2-1.pgdg18.04+1)
When I execute in psql prompt
SELECT version();
It outputs:
PostgreSQL 11.11 (Ubuntu 11.11-1.pgdg18.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit
What does it mean? Why there is different version? Which is the actual version? How do I make sure both have same version?