How to fix pg_dump: aborting because of server version mismatch
<p>My codebase and database is hosted on different servers with Ubuntu 12.04.</p>

<pre><code>database =&gt; web1

codebase =&gt; web2
</code></pre>

<p>I am trying to take my database backup (web1) through the application(web2).</p>

<p>Now the problem is I have different versions of postgres installed on web1 and web2. </p>

<pre><code>pg_dump: server version: 9.3.12 (web1)

pg_dump version: 9.1.23 (web2)
</code></pre>

<p>Is there any way I can resolve this issue without upgrading any package because there are multiple applications hosted and relying on these versions.</p>

<p>Thanks for helping!</p>