# Problemas al actualizar PostgreSQL de 9.3 a la versión actual

**URL:** <https://meta.discourse.org/t/trouble-upgrading-postgresql-from-9-3-to-current/49207>\
**Category:** Self-hosting\
**Created:** [25 Agosto, 2016 16:35 UTC](https://meta.discourse.org/t/trouble-upgrading-postgresql-from-9-3-to-current/49207 "2016-08-25T16:35:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)\
**Post date:** [25 Agosto, 2016 16:35 UTC](https://meta.discourse.org/t/trouble-upgrading-postgresql-from-9-3-to-current/49207/1 "2016-08-25T16:35:27Z")

</div>

Continuing the discussion from [Discourse Docker Image version 1.3.3, released](https://meta.discourse.org/t/discourse-docker-image-version-1-3-3-released/44778):

> [@sam](#):
>
> Trouble upgrading PostgreSQL
> 
> On some very old images of Discourse the automatic pg upgrade may fail. If this happens the upgrader will display the commands you need to run to get up and running. In a nutshell you need to “backup” your db to a folder and then restore it from the folder into the new version. Alternatively, you can amend your template to run against pg 9.3

So, I have been using postgres 9.3 since the new docker image came out.. and just replacing `templates/postgres.9.3.template.yml` with `templates/postgres.template.yml` doesn’t work.  
Given a current backup, what’s a good way to upgrade the postgres template?

---

_[View the full topic](https://meta.discourse.org/t/trouble-upgrading-postgresql-from-9-3-to-current/49207)._
