title: How do I solve a pg_dump: aborting because of server version mismatch?
body: <p>While doing database backup using pg_dump utilities I am getting below error.</p>
  
  <pre><code>root@lab1:~# pg_dump -Fc -h localhost -U postgres hrdb -f hrdb.dmp
  Password: 
  pg_dump: server version: 12.0 (Debian 12.0-2.pgdg100+1); pg_dump version: 10.10 (Ubuntu 10.10-0ubuntu0.18.04.1)
  pg_dump: aborting because of server version mismatch
  </code></pre>