How can I upgrade PostgreSQL 9.3.10 to PostgreSQL 9.4.5 in Ubuntu?
<p>Hello and excuse my english.</p>

<p>I'm trying to pull a remote database with heroku, but it gives me this error:</p>

<pre><code>pg_dump: server version: 9.4.5; pg_dump version: 9.3.10
pg_dump: aborting because of server version mismatch
pg_restore: [archiver] input file is too short (read 0, expected 5)
</code></pre>

<p>I'm guessing I just need to upgrade my current version 9.3.10 to server version 9.4.5, but is not clear to me how to do it.</p>

<p>PD: I don't mind losing the data of my current databases.</p>