| 88 | |
| 89 | |
| 90 | '''Stallman'''. Convert postgres 9.1 -> 9.4 |
| 91 | {{{ |
| 92 | pg_dumpall --verbose > pg91.out |
| 93 | |
| 94 | # Verify roundcube databases not in 9.4 |
| 95 | psql -p 5433 --list |
| 96 | |
| 97 | # load dump into 9.4 |
| 98 | psql -p 5433 < pg91.out |
| 99 | |
| 100 | # check |
| 101 | psql -p 5433 --list |
| 102 | }}} |
| 103 | |
| 104 | Next, stop all postgres instances, and switch 9.4 from the alternate |
| 105 | port to the main port. |
| 106 | |
| 107 | {{{ |
| 108 | systemctl stop postgresql@9.1-main.service |
| 109 | systemctl stop postgresql@9.4-main.service |
| 110 | }}} |
| 111 | |
| 112 | Set {{{port = 5432}}} in /etc/postgresql/9.4/main/postgresql.conf |
| 113 | |
| 114 | {{{ |
| 115 | systemctl start postgresql@9.4-main.service |
| 116 | systemctl disable postgresql@9.1-main.service |
| 117 | |
| 118 | 0 roundcube@stallman:~$ psql -U roundcube roundcube |
| 119 | psql (9.4.6) |
| 120 | }}} |
| 121 | |