Set up DBConnection pool with latest postgrex

We’re migrated our elixir app to latest version along with dependencies. While upgrading postgrex from 0.13 to 0.16 we’re facing issue to setup pool. Previously we have db_connection 1.3 which supports DBConnection.Poolboy as a way of pool connection manager.
Upgrad:

  db_connection 1.1.3  => 2.4.2 (major)
  postgrex 0.13.5 => 0.16.3 (minor)

What is the most simple and actual way to setup connection pool? Thanks

You should be able to use Postgrex.start_link and it will start a pool using this module: DBConnection.ConnectionPool — db_connection v2.4.2. You can configure the pool size with the :pool_size option.