# Postgres connection error

**URL:** <https://travis-ci.community/t/postgres-connection-error/4778>\
**Category:** Linux\
**Created:** [August 18, 2019, 5:23pm UTC](https://travis-ci.community/t/postgres-connection-error/4778 "2019-08-18T17:23:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [August 18, 2019, 8:54pm UTC](https://travis-ci.community/t/postgres-connection-error/4778/2 "2019-08-18T20:54:13Z")

</div>

Possible duplicate of

> [@Postgresql 11.2: Cannot connect](https://travis-ci.community/t/postgresql-11-2-cannot-connect/2680):
>
> I’m having trouble getting a build working with Postgresql 11.2. As with previous attempts, the [latest build](https://travis-ci.org/keithpitty/kpdotcom/builds/507439479?utm_source=github_status&utm_medium=notification) fails when an attempt is made to run a command via psql. Here’s the configuration: env: global: - CC\_TEST\_REPORTER\_ID=eca569d89e2a8d954a3e28ef958ce10e912eef6570bbdabbb28297e11948efa8 language: ruby before\_install: - gem update --system - gem install bundler rvm: - 2.6.2 services: - postgresql dist: - xenial addons: postgresql: "11.2" apt: packages: - postgr…

> [@Install Postgresql 11](https://travis-ci.community/t/install-postgresql-11/3894):
>
> Hello, I’ve been searching on the web for a proper way to install postgresql 11 without any success. Please can you help us ? I tried: addons: postgresql: '11' apt: packages: - postgresql-11 - postgresql-client-11 but the error is : Refused to start PostgreSQL 11, because PostgreSQL 9.2 is currently running! You should first stop 9.2 instance...

---

_[View the full topic](https://travis-ci.community/t/postgres-connection-error/4778)._
