Notes from UPDATING |
- These upgrade notes are taken from /usr/ports/UPDATING
- 2021-10-24
Affects: users of databases/postgresql* and other software using PostgreSQL to run Author: kbowling@FreeBSD.org Reason:
The default version of PostgreSQL has been switched from 12 to 13.
The upgrade procedure can use up twice the space the databases
currently needs. If you have a big amount of stored data take a
closer look at the manpage of pg_upgrade for avoidance and/or
speedup of the upgrade.
The upgrade instructions consider a basic usage and do not match
complex scenarios like replication, sharding, or similar.
Upgrade instructions:
First stop your PostgreSQL, create PostgreSQL-binaries and backup your data.
If you have another Version of PostgreSQL installed, for example 12.8, your
files are named according to this.
# service postgresql stop
# pkg create postgresql12-server postgresql12-contrib
# mkdir /tmp/pg-upgrade
# tar xf postgresql12-server-12.8.pkg -C /tmp/pg-upgrade
# tar xf postgresql12-contrib-12.8.pkg -C /tmp/pg-upgrade
# pkg delete -f databases/postgresql12-server databases/postgresql12-contrib databases/postgresql12-client
Now update PostgreSQL:
pkg user:
# pkg install databases/postgresql13-server databases/postgresql13-contrib
# pkg upgrade
Portmaster users:
# portmaster databases/postgresql13-server databases/postgresql13-contrib
# portmaster -a
Portupgrade users:
# portinstall databases/postgresql13-server databases/postgresql13-contrib
# portupgrade -a
After installing the new PostgreSQL version you need to convert
all your databases to new version:
# su -l postgres -c "/usr/local/bin/initdb --encoding=utf-8 --lc-collate=C -D /var/db/postgres/data13 -U postgres"
# su -l postgres -c "pg_upgrade -b /tmp/pg-upgrade/usr/local/bin/ -d /var/db/postgres/data12/ -B /usr/local/bin/ -D /var/db/postgres/data13/ -U postgres "
Now the migration is finished. You can start PostgreSQL again with:
# service postgresql start
ATTENTION:
1) The default user changed from "pgsql" to "postgres" in 11. The migration steps above now assume
the "postgres" database user and FreeBSD user.
2) See the updating entry 20190829 if you are updating from a release prior to 11.
3) If you use non-default initdb options, you have to adjust the initdb-command accordingly
|
Number of commits found: 9
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
0.8.0_2 16 Mar 2023 11:11:52
    |
Mikael Urankar (mikael)  |
lang/rust: Bump revisions after 1.68.0
PR: 270080 |
0.8.0_1 13 Feb 2023 14:52:59
    |
Mikael Urankar (mikael)  |
lang/rust: Bump revisions after 1.67.1
PR: 269336 |
0.8.0 25 Jan 2023 17:00:46
    |
Mark Felder (feld)  |
databases/postgresql-promscale: Update to 0.8.0
Changelog: https://github.com/timescale/promscale_extension/releases/tag/0.8.0
PR: 267851 |
0.7.0_3 05 Jan 2023 23:25:20
    |
Daniel Engberg (diizzy)  |
databases/postgresql-promscale: Mark as BROKEN
Fails to build using Rust 1.65.0 or newer
PR: 267851
Reported by: Jony Hudson <bsd@j-star.org> |
0.7.0_3 20 Dec 2022 17:37:15
    |
Mikael Urankar (mikael)  |
lang/rust: Bump revisions after 1.66.0
PR: 268415 |
0.7.0_2 03 Dec 2022 18:43:44
    |
Mark Felder (feld)  |
databases/postgresql-promscale: portlint fixes and defined ONLY_FOR_ARCHES |
0.7.0_2 17 Nov 2022 07:06:14
    |
Mikael Urankar (mikael)  |
lang/rust: Bump revisions after 1.65.0
PR: 267622 |
0.7.0_1 08 Nov 2022 15:47:47
    |
Mark Felder (feld)  |
databases/postgresql-promscale: Fix build with NLS
PR: 267550 |
0.7.0 02 Nov 2022 21:48:47
    |
Mark Felder (feld)  |
databases/postgresql-promscale: add new port
The PostgreSQL Promscale extension provides the required database capability
and PL/pgsql code to support Promscale 0.11.0+
Promscale is API-compatible with Prometheus and stores your metrics in
PostgreSQL
in a highly performant storage format with the help of TimescaleDB. |
Number of commits found: 9
|