title: Elixir Cannot connect to the PostgreSQL
body: <p>I've a project running on my local machine using:</p>
  
  <pre><code>Erlang with openssl: Version 18.0
  Elixir: Version 1.3.4
  </code></pre>
  
  <p>I installed both of them using <strong>asdf</strong>. Everything works fine. But when I try to connect to database it always gives me the following error:</p>
  
  <blockquote>
    <p>unhandled exit at GET /ad_units/Y9Gd1kAiPCv8WOrE
    exited in: :gen_server.call(#PID&lt;0.469.0>, {:checkout, #Reference&lt;0.0.6.2529>, true, 15000}, 5000)
        ** (EXIT) an exception was raised:
            ** (CaseClauseError) no case clause matching: [10, 7, 7, 18, 4, 1]
                (postgrex) lib/postgrex/utils.ex:39: Postgrex.Utils.parse_version/1
                (postgrex) lib/postgrex/extensions/void.ex:5: Postgrex.Extensions.Void.init/2
                (postgrex) lib/postgrex/types.ex:56: anonymous fn/2 in Postgrex.Types.prepare_extensions/2
                (elixir) lib/enum.ex:1115: anonymous fn/4 in Enum.into/3
                (elixir) lib/enum.ex:1623: Enum."-reduce/3-lists^foldl/2-0-"/3
                (elixir) lib/enum.ex:1121: Enum.into/4
                (postgrex) lib/postgrex/protocol.ex:434: Postgrex.Protocol.bootstrap_send/3
                (postgrex) lib/postgrex/protocol.ex:69: Postgrex.Protocol.connect/1
                (db_connection) lib/db_connection/connection.ex:114: DBConnection.Connection.connect/2
                (connection) lib/connection.ex:623: Connection.enter_connect/5
                (stdlib) proc_lib.erl:239: :proc_lib.init_p_do_apply/3</p>
  </blockquote>
  
  <p>I'm using Ubuntu 18.04 and PostgreSQL 10. 
  BTW, I can connect to the postgres using a Ruby on Rails project and it's working fine. I tried to remove the <code>build</code> and then <code>mix deps.get &amp;&amp; mix deps.compile</code>, but still the same. </p>
  
  <p>Any idea what's the issue? </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p><code>mix.deps</code> dependencies:</p>
  
  <pre><code>defp deps do
      [{:phoenix, "~&gt; 1.1.6"},
        {:postgrex, "&gt;= 0.0.0"},
        {:phoenix_ecto, "~&gt; 2.0"},
        {:phoenix_html, "~&gt; 2.4"},
        {:phoenix_live_reload, "~&gt; 1.0"},
        {:gettext, "~&gt; 0.9"},
        {:cowboy, "~&gt; 1.0"},
        {:phoenix_slime, "~&gt; 0.6.0"},
        {:timex, "~&gt; 2.2"},
        {:tzdata, "~&gt; 0.1.8", override: true},
        {:timex_ecto, "~&gt; 1.1.3"},
        # {:quantum, "&gt;= 1.7.1"},
        {:exrm, "~&gt; 1.0" },
        {:edeliver, "&gt;= 1.2.10"},
        {:browser, "~&gt; 0.1.0"}]
    end
  </code></pre>