How do you use Postgres 9.6.X? or 9.X.X?

Thanks for your question and sorry this isn’t clearer in the docs - we’ll get that improved as soon as we can.

For our 14.04 build image, the current way to do this is described here: Ubuntu 14.04 Build Image Update 201701-01

In summary: 9.5 is the currently supported Postgres version. If you wish to use 9.6 instead of 9.5, you can add the following to your circle.yml.

dependencies:
  pre:
    - sudo service postgresql stop
    - sudo mv /usr/lib/postgresql-9.6/9.6 /usr/lib/postgresql/9.6
    - sudo mv /etc/postgresql-9.6/9.6 /etc/postgresql/9.6
    - sudo service postgresql start 9.6

In CircleCI 2.0 you’ll be able to specify exactly the version you need. More info here: https://circleci.com/beta-access/

1 Like