mirror of
https://github.com/Ponce/slackbuilds
synced 2024-10-01 06:32:51 +02:00
system/postgresql: Updated for version 9.6.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
9514306f3d
commit
5889a05587
4 changed files with 20 additions and 20 deletions
|
@ -1,11 +1,11 @@
|
|||
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/9.5/data --locale=en_US.UTF-8 -A md5 -W"
|
||||
# su postgres -c "initdb -D /var/lib/pgsql/9.6/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/9.5/interactive/logfile-maintenance.html
|
||||
http://www.postgresql.org/docs/9.6/interactive/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
|
||||
|
@ -28,19 +28,19 @@ 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/9.5/static/app-pg-ctl.html
|
||||
See http://www.postgresql.org/docs/9.6/static/app-pg-ctl.html
|
||||
|
||||
From PostgreSQL 9.3 we support in place database upgrades using pg_upgrade:
|
||||
http://www.postgresql.org/docs/9.5/static/pgupgrade.html
|
||||
http://www.postgresql.org/docs/9.6/static/pgupgrade.html
|
||||
|
||||
A few hints for PostgreSQL 9.4 -> 9.5 upgrade:
|
||||
- Don't remove old PostgreSQL 9.4.x package
|
||||
- Install PostgreSQL 9.5.x, note that binaries are in
|
||||
'/usr/lib64/postgresql/9.5/bin'
|
||||
A few hints for PostgreSQL 9.5 -> 9.6 upgrade:
|
||||
- Don't remove old PostgreSQL 9.5.x package
|
||||
- Install PostgreSQL 9.6.x, note that binaries are in
|
||||
'/usr/lib64/postgresql/9.6/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
|
||||
- Run '/var/log/scripts/postgresql-9.5.x-x86_64-1_SBo' (doinst.sh script)
|
||||
- Run '/var/log/scripts/postgresql-9.6.x-x86_64-1_SBo' (doinst.sh script)
|
||||
from filesystem root, to create symlinks in /usr/bin to PostgreSQL binaries
|
||||
|
||||
|
||||
|
|
|
@ -28,11 +28,11 @@
|
|||
# Modified by the SlackBuilds.org Project
|
||||
|
||||
PRGNAM=postgresql
|
||||
VERSION=${VERSION:-9.5.3}
|
||||
VERSION=${VERSION:-9.6.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
PG_VERSION=${PG_VERSION:-9.5}
|
||||
PG_VERSION=${PG_VERSION:-9.6}
|
||||
PG_PORT=${PG_PORT:-5432}
|
||||
PG_UID=${PG_UID:-209}
|
||||
PG_GID=${PG_GID:-209}
|
||||
|
@ -135,7 +135,7 @@ make install-docs DESTDIR=$PKG
|
|||
)
|
||||
|
||||
# Some interesting additional modules:
|
||||
# http://www.postgresql.org/docs/9.5/static/contrib.html
|
||||
# http://www.postgresql.org/docs/9.6/static/contrib.html
|
||||
#
|
||||
# adminpack - helper extension for pgAdmin
|
||||
# pgcrypto - extension for some business applications
|
||||
|
@ -143,7 +143,7 @@ make install-docs DESTDIR=$PKG
|
|||
# postgres_fdw - foreign-data wrapper for access to external PostgreSQL servers
|
||||
# file_fdw - foreign-data wrapper for access to data files on filesystem
|
||||
|
||||
PG_EXTENSIONS=${PG_EXTENSIONS:-"adminpack pgcrypto ltree xml2 postgres_fdw file_fdw"}
|
||||
PG_EXTENSIONS=${PG_EXTENSIONS:-"adminpack pgcrypto ltree xml2 postgres_fdw file_fdw hstore citext"}
|
||||
|
||||
if [ "x$PG_EXTENSIONS" = "xALL" ];then
|
||||
cd $TMP/$PRGNAM-$VERSION/contrib
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="postgresql"
|
||||
VERSION="9.5.3"
|
||||
VERSION="9.6.0"
|
||||
HOMEPAGE="http://www.postgresql.org"
|
||||
DOWNLOAD="http://ftp.postgresql.org/pub/source/v9.5.3/postgresql-9.5.3.tar.bz2"
|
||||
MD5SUM="3f0c388566c688c82b01a0edf1e6b7a0"
|
||||
DOWNLOAD="http://ftp.postgresql.org/pub/source/v9.6.0/postgresql-9.6.0.tar.bz2"
|
||||
MD5SUM="c5af6ebb790ab877e1d2e56e19cebb29"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
# PostgreSQL startup script for Slackware Linux
|
||||
#
|
||||
# $Revision: 6804ca7db709 $
|
||||
# $Date: 2015/03/13 21:57:14 $
|
||||
# $Revision$
|
||||
# $Date$
|
||||
#
|
||||
# Copyright 2007-2016 Adis Nezirovic <adis_at_linux.org.ba>
|
||||
# All rights reserved.
|
||||
|
@ -30,7 +30,7 @@
|
|||
# Since version 9.3 this startup script can run multiple PostgreSQL
|
||||
# versions on different ports and with different data dirs.
|
||||
#
|
||||
# e.g. PG_VERSION=9.5 PG_PORT=6432 /etc/rc.d/rc.@PRGNAM@ start
|
||||
# e.g. PG_VERSION=9.6 PG_PORT=6432 /etc/rc.d/rc.@PRGNAM@ start
|
||||
|
||||
PG_VERSION=${PG_VERSION:-@PG_VERSION@}
|
||||
PG_PORT=${PG_PORT:-@PG_PORT@}
|
||||
|
@ -43,7 +43,7 @@ PIDFILE=$DATADIR/postmaster.pid
|
|||
|
||||
# oom-killer score
|
||||
#
|
||||
# http://www.postgresql.org/docs/9.5/static/kernel-resources.html#LINUX-MEMORY-OVERCOMMIT
|
||||
# http://www.postgresql.org/docs/9.6/static/kernel-resources.html#LINUX-MEMORY-OVERCOMMIT
|
||||
PG_OOM_ADJUST_FILE=/proc/self/oom_score_adj
|
||||
PG_MASTER_OOM_SCORE_ADJ=-1000
|
||||
PG_CHILD_OOM_SCORE_ADJ=0
|
||||
|
|
Loading…
Reference in a new issue