Lines 5-10
Link Here
|
5 |
You should get into the habit of checking this file for changes each time |
5 |
You should get into the habit of checking this file for changes each time |
6 |
you update your ports collection, before attempting any port upgrades. |
6 |
you update your ports collection, before attempting any port upgrades. |
7 |
|
7 |
|
|
|
8 |
20170612: |
9 |
AFFECTS: users of database/postgresql*, databases/postgis* and other |
10 |
software using PostgreSQL to run |
11 |
AUTHOR: tz@FreeBSD.org |
12 |
|
13 |
The default version of PostgreSQL has been switched from 9.3 to 9.5. |
14 |
Upgrade instructions: |
15 |
|
16 |
First stop your PostgreSQL, fetch current PostgreSQL-binaries and backup your data: |
17 |
|
18 |
# service postgresql stop |
19 |
# pkg fetch postgresql93-server postgresql93-contrib |
20 |
# mkdir /tmp/pg-upgrade |
21 |
# tar xf /var/cache/pkg/postgresql93-server-9.3.17.txz -C /tmp/pg-upgrade |
22 |
# tar xf /var/cache/pkg/postgresql93-contrib-9.3.17.txz -C /tmp/pg-upgrade |
23 |
# mv /usr/local/pgsql/data /usr/local/pgsql/data93 |
24 |
|
25 |
Now update PostgreSQL: |
26 |
|
27 |
pkg user: |
28 |
# pkg upgrade |
29 |
|
30 |
Portmaster users: |
31 |
# portmaster databases/postgresql95-server databases/postgresql95-contrib |
32 |
# portmaster -a |
33 |
|
34 |
Portupgrade users: |
35 |
# portinstall databases/postgresql95-server databases/postgresql95-contrib |
36 |
# portupgrade -a |
37 |
|
38 |
After installing the new PostgreSQL version you need to convert |
39 |
all your databases to new version: |
40 |
|
41 |
# service postgresql initdb |
42 |
# su -l pgsql -c "pg_upgrade -b /tmp/pg-upgrade/usr/local/bin/ -d /usr/local/pgsql/data93/ -B /usr/local/bin/ -D /usr/local/pgsql/data/" |
43 |
|
8 |
20170603: |
44 |
20170603: |
9 |
AFFECTS: users of www/kanboard |
45 |
AFFECTS: users of www/kanboard |
10 |
AUTHOR: joneum@FreeBSD.org |
46 |
AUTHOR: joneum@FreeBSD.org |