title: How to configure postgres to run only one version
body: <p>I'm pretty new to using postgresql and seemed to have installed two versions that are running at the same time. Both 12 and 14.</p>
  <p>Below is the list of commands that I've run, and the results they've yielded.</p>
  <p><em><strong>From WSL-2 Ubuntu 20.04 CLI</strong></em></p>
  <p><code>➜ which psql</code></p>
  <pre><code>/usr/bin/psql
  </code></pre>
  <p><code>➜ pg_config --version</code></p>
  <pre><code>PostgreSQL 14.4 (Ubuntu 14.4-1.pgdg20.04+1)
  </code></pre>
  <p><code>➜ psql --version</code></p>
  <pre><code>psql (PostgreSQL) 14.4 (Ubuntu 14.4-1.pgdg20.04+1)
  </code></pre>
  <p><em><strong>From psql</strong></em></p>
  <p><code>=# SHOW server_version;</code></p>
  <pre><code>           server_version
  ------------------------------------
   12.11 (Ubuntu 12.11-1.pgdg20.04+1)
  (1 row)
  </code></pre>
  <p><code>=# SELECT version();</code></p>
  <pre><code>                                                               version
  -------------------------------------------------------------------------------------------------------------------------------------
   PostgreSQL 12.11 (Ubuntu 12.11-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, 64-bit
  (1 row)
  </code></pre>
  <p>I've have some persistent issues with my odoo 15 db and think this may be the cause but am unsure.</p>
  <p><em><strong>Any recommendations on how to transition from 12.11 server to 14.4 server and remove 12.11 server would be greatly appreciated.</strong></em></p>