# Kan ik een latere versie van Postgres gebruiken dan Discourse?

**URL:** https://meta.discourse.org/t/can-i-use-a-later-version-of-postgres-than-discourse/215354
**Category:** Self-hosting
**Created:** [19 januari 2022 om 17:48 UTC](https://meta.discourse.org/t/can-i-use-a-later-version-of-postgres-than-discourse/215354 "2022-01-19T17:48:30Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Wanderer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wanderer/32/233165_2.png) [@Wanderer](https://meta.discourse.org/u/Wanderer)
#### Post date: [19 januari 2022 om 17:48 UTC](https://meta.discourse.org/t/can-i-use-a-later-version-of-postgres-than-discourse/215354/1 "2022-01-19T17:48:30Z")

</div>

Hello, I have a separate Postgres db container, because I’ve noticed some quite severe problem stopping and starting Discourse container, and because I prefer to have db apart from Discourse program.

As stated [here](https://meta.discourse.org/t/running-discourse-with-a-separate-postgresql-server/46375), “Discourse requires PostgreSQL 13 or later”, so I pulled the last version that is 14; no problem using it but I noticed an error during automatic backup, caused by pg\_dump version.

Any hint?

Thanks

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [19 januari 2022 om 18:21 UTC](https://meta.discourse.org/t/can-i-use-a-later-version-of-postgres-than-discourse/215354/2 "2022-01-19T18:21:32Z")

</div>

If you are running a later version of PostgreSQL than the one we ship you will need to handle the backup too.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [20 januari 2022 om 14:23 UTC](https://meta.discourse.org/t/can-i-use-a-later-version-of-postgres-than-discourse/215354/3 "2022-01-20T14:23:14Z")

</div>

I think that it’s also possible to install the PG 14 client stuff inside your container so that the backup tools will work.

Another solution is a two container installation. See [How to move from standalone container to separate web and data containers](https://meta.discourse.org/t/how-to-move-from-standalone-container-to-separate-web-and-data-containers/29413) fo rsome information.

---

<div class="post-metadata">

### Author: ![Wanderer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wanderer/32/233165_2.png) [@Wanderer](https://meta.discourse.org/u/Wanderer)
#### Post date: [20 januari 2022 om 16:22 UTC](https://meta.discourse.org/t/can-i-use-a-later-version-of-postgres-than-discourse/215354/4 "2022-01-20T16:22:24Z")

</div>

Not sure it’s very related to my question. I already have two containers installation, working fine, Discourse in a container, Postgres 14 in another. The only thing not working, afaik, is pg\_dump, that for some reason refuses to go during automatic Discourse backup.

I don’t know if it’s a Discourse or Postgres problem, but I find strange that everything is working except a single command.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [20 januari 2022 om 16:28 UTC](https://meta.discourse.org/t/can-i-use-a-later-version-of-postgres-than-discourse/215354/5 "2022-01-20T16:28:47Z")

</div>

Our base image ships with both pg client tools and server on the same major version. Since you are running a different image for PostgreSQL, and it has a different major version, you will need to handle the backup.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [19 februari 2022 om 16:29 UTC](https://meta.discourse.org/t/can-i-use-a-later-version-of-postgres-than-discourse/215354/6 "2022-02-19T16:29:40Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
