Re: [GENERAL] Upgrading postgresql minor version

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: [GENERAL] Upgrading postgresql minor version
Дата
Msg-id CAKFQuwZ=FDuGDK0zs+w+iecdYsb46H3y2g9O7KXzO7n2w7hG-Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Upgrading postgresql minor version  (Ron Ben <ronb910@walla.co.il>)
Ответы Re: [GENERAL] Upgrading postgresql minor version  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
On Wed, May 10, 2017 at 8:13 AM, Ron Ben <ronb910@walla.co.il> wrote:
Not possible 
 
To upgrade I do: apt-get install postgresql-9.3
There is no way to "roll back" from here.
I can not choose which version to install, it install the latest version packed for debian. Currently its 9.3.16
 
The docuntation says that upgrading minor version is just "replacing the executables", so there has to be a way to save them on the side for roll back.
 
​I see that the binaries involved are located under "/usr/​lib/postgresql" - in directories matching up with the version-cluster naming scheme the the apt packages employ.  In theory backing up and restoring the relevant directories under there should work.  This would only work for minor version switching.

If not, the documntation is insuffecent. We all know that sometimes even the smallest change can cause troubles.

​Maybe, but as noted its not the PostgreSQL project's ​documentation that is lacking here - since you are not installing from source.

I've never seen whether the upgrade process touches any other files, or exactly what it touches for that matter, but that should should be enough info to experiment.  It would be interesting to use Docker (or an equivalent) and perform an update and see what what the new layer shows as having been changed.

David J.

В списке pgsql-general по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [GENERAL] relation create time
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: [GENERAL] character encoding of the postgres database