diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2021-11-20 12:20:58 +1300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-01-25 14:44:40 +0700 |
commit | b5d00d92da94c851bda4b8d6c8de6ac74301f4cb (patch) | |
tree | 1443fcf0901c54ee66d97e7cb8b8fcc99f2186a6 /system/postgresql/README.SBo | |
parent | 2e1e179158c17d3c2ea4109c5002852ca7140c9c (diff) |
system/postgresql: Use same data dir for all 14.x releases.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/postgresql/README.SBo')
-rw-r--r-- | system/postgresql/README.SBo | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/system/postgresql/README.SBo b/system/postgresql/README.SBo index a303cc84ac0f2..89e1424750adb 100644 --- a/system/postgresql/README.SBo +++ b/system/postgresql/README.SBo @@ -1,14 +1,14 @@ Before you can run postgresql you'll need to create the database files in /var/lib/pgsql. The following should do the trick. - # su postgres -c "initdb -D /var/lib/pgsql/14.1/data --locale=en_US.UTF-8 -A md5 -W" + # su postgres -c "initdb -D /var/lib/pgsql/14/data --locale=en_US.UTF-8 -A md5 -W" Additionally, a logrotation script and init script are included. For production level log file handling please read -http://www.postgresql.org/docs/14/interactive/logfile-maintenance.html +https://www.postgresql.org/docs/14/logfile-maintenance.html -In order to start postgresql at boot and stop it properly at shutdown, -make sure rc.postgresql is executable and add the following lines to +In order to start postgresql at boot and stop it properly at shutdown, +make sure rc.postgresql is executable and add the following lines to the following files: /etc/rc.d/rc.local @@ -28,20 +28,18 @@ the following files: Additionally, rc.postgresql script has additional modes for stop/restart: force-stop|force-restart (i.e. pg_ctl 'fast' mode) unclean-stop|unclean-restart (i.e. pg_ctl 'immediate' mode) -See http://www.postgresql.org/docs/14/app-pg-ctl.html +See https://www.postgresql.org/docs/14/app-pg-ctl.html -From PostgreSQL 9.6 we support in place database upgrades using pg_upgrade: - http://www.postgresql.org/docs/14/pgupgrade.html +From PostgreSQL 9.3 we support in place database upgrades using pg_upgrade: + https://www.postgresql.org/docs/14/pgupgrade.html -A few hints for PostgreSQL 9.6 -> X.Y upgrade: - - Don't remove old PostgreSQL 9.6.x package - - Install PostgreSQL X.Y, note that binaries are in - '/usr/lib64/postgresql/X.Y/bin' +A few hints for PostgreSQL 10.x -> 14.x upgrade: + - Don't remove old PostgreSQL 10.x package + - Install PostgreSQL 14.x, note that binaries are in + '/usr/lib64/postgresql/14/bin' - Follow regular pg_upgrade docs - Remove old package when transition is over, or read comments in rc.postgresql if you want to run multiple PostgreSQL versions in parallel - - Check the /usr/bin for stale symlinks for old binaries_ - e.g. in v10.0 pg_xlogdump got renamed to pg_waldump. This script builds postgresql with some useful extension modules from the contrib directory, see PG_EXTENSIONS in SlackBuild file. |