From de6b8c5295ca8e0b476fcba41bf6bf5de10fadeb Mon Sep 17 00:00:00 2001 From: "Lance R. Vick" Date: Mon, 27 Jun 2016 06:22:48 +0000 Subject: [PATCH] committing changes in /etc after apt run Package changes: +libpq5 9.4.8-0+deb8u1 +postgresql 9.4+165+deb8u1 +postgresql-9.4 9.4.8-0+deb8u1 +postgresql-client-9.4 9.4.8-0+deb8u1 +postgresql-client-common 165+deb8u1 +postgresql-common 165+deb8u1 --- .etckeeper | 36 +- apt/apt.conf.d/01autoremove-postgresql | 17 + init.d/postgresql | 61 ++ logrotate.d/postgresql-common | 10 + packages.txt | 160 ++++- postgresql-common/createcluster.conf | 32 + postgresql-common/root.crt | 11 + postgresql-common/user_clusters | 23 + postgresql/9.4/main/environment | 7 + postgresql/9.4/main/pg_ctl.conf | 5 + postgresql/9.4/main/pg_hba.conf | 99 +++ postgresql/9.4/main/pg_ident.conf | 42 ++ postgresql/9.4/main/postgresql.conf | 615 ++++++++++++++++++ postgresql/9.4/main/start.conf | 9 + rc0.d/K02postgresql | 1 + rc1.d/K02postgresql | 1 + rc2.d/S02postgresql | 1 + rc3.d/S02postgresql | 1 + rc4.d/S02postgresql | 1 + rc5.d/S02postgresql | 1 + rc6.d/K02postgresql | 1 + sysctl.d/30-postgresql-shm.conf | 12 + .../postgresql.service | 1 + 23 files changed, 1141 insertions(+), 6 deletions(-) create mode 100644 apt/apt.conf.d/01autoremove-postgresql create mode 100755 init.d/postgresql create mode 100644 logrotate.d/postgresql-common create mode 100644 postgresql-common/createcluster.conf create mode 100644 postgresql-common/root.crt create mode 100644 postgresql-common/user_clusters create mode 100644 postgresql/9.4/main/environment create mode 100644 postgresql/9.4/main/pg_ctl.conf create mode 100644 postgresql/9.4/main/pg_hba.conf create mode 100644 postgresql/9.4/main/pg_ident.conf create mode 100644 postgresql/9.4/main/postgresql.conf create mode 100644 postgresql/9.4/main/start.conf create mode 120000 rc0.d/K02postgresql create mode 120000 rc1.d/K02postgresql create mode 120000 rc2.d/S02postgresql create mode 120000 rc3.d/S02postgresql create mode 120000 rc4.d/S02postgresql create mode 120000 rc5.d/S02postgresql create mode 120000 rc6.d/K02postgresql create mode 100644 sysctl.d/30-postgresql-shm.conf create mode 120000 systemd/system/multi-user.target.wants/postgresql.service diff --git a/.etckeeper b/.etckeeper index 2d7a7ee..4ec1342 100755 --- a/.etckeeper +++ b/.etckeeper @@ -32,6 +32,7 @@ mkdir -p './polkit-1/localauthority/30-site.d' mkdir -p './polkit-1/localauthority/50-local.d' mkdir -p './polkit-1/localauthority/90-mandatory.d' mkdir -p './postfix/sasl' +mkdir -p './postgresql-common/pg_upgradecluster.d' mkdir -p './security/limits.d' mkdir -p './security/namespace.d' mkdir -p './systemd/network' @@ -107,6 +108,7 @@ maybe chmod 0644 'apt/apt.conf.d/00InstallRecommends' maybe chmod 0644 'apt/apt.conf.d/00trustcdrom' maybe chmod 0644 'apt/apt.conf.d/01autoremove' maybe chmod 0644 'apt/apt.conf.d/01autoremove-kernels' +maybe chmod 0644 'apt/apt.conf.d/01autoremove-postgresql' maybe chmod 0644 'apt/apt.conf.d/05etckeeper' maybe chmod 0644 'apt/apt.conf.d/50unattended-upgrades' maybe chmod 0644 'apt/apt.conf.d/70debconf' @@ -606,6 +608,7 @@ maybe chmod 0755 'init.d/nscd' maybe chmod 0755 'init.d/nslcd' maybe chmod 0755 'init.d/oidentd' maybe chmod 0755 'init.d/postfix' +maybe chmod 0755 'init.d/postgresql' maybe chmod 0755 'init.d/procps' maybe chmod 0755 'init.d/rc' maybe chmod 0755 'init.d/rc.local' @@ -747,6 +750,7 @@ maybe chmod 0755 'logrotate.d' maybe chmod 0644 'logrotate.d/apt' maybe chmod 0644 'logrotate.d/aptitude' maybe chmod 0644 'logrotate.d/dpkg' +maybe chmod 0644 'logrotate.d/postgresql-common' maybe chmod 0644 'logrotate.d/redis-server' maybe chmod 0644 'logrotate.d/rsyslog' maybe chmod 0644 'logrotate.d/sssd-common' @@ -878,6 +882,36 @@ maybe chmod 0755 'postfix/post-install' maybe chmod 0644 'postfix/postfix-files' maybe chmod 0755 'postfix/postfix-script' maybe chmod 0755 'postfix/sasl' +maybe chmod 0755 'postgresql' +maybe chmod 0755 'postgresql-common' +maybe chmod 0644 'postgresql-common/createcluster.conf' +maybe chmod 0755 'postgresql-common/pg_upgradecluster.d' +maybe chmod 0644 'postgresql-common/root.crt' +maybe chmod 0644 'postgresql-common/user_clusters' +maybe chown 'postgres' 'postgresql/9.4' +maybe chgrp 'postgres' 'postgresql/9.4' +maybe chmod 0755 'postgresql/9.4' +maybe chown 'postgres' 'postgresql/9.4/main' +maybe chgrp 'postgres' 'postgresql/9.4/main' +maybe chmod 0755 'postgresql/9.4/main' +maybe chown 'postgres' 'postgresql/9.4/main/environment' +maybe chgrp 'postgres' 'postgresql/9.4/main/environment' +maybe chmod 0644 'postgresql/9.4/main/environment' +maybe chown 'postgres' 'postgresql/9.4/main/pg_ctl.conf' +maybe chgrp 'postgres' 'postgresql/9.4/main/pg_ctl.conf' +maybe chmod 0644 'postgresql/9.4/main/pg_ctl.conf' +maybe chown 'postgres' 'postgresql/9.4/main/pg_hba.conf' +maybe chgrp 'postgres' 'postgresql/9.4/main/pg_hba.conf' +maybe chmod 0640 'postgresql/9.4/main/pg_hba.conf' +maybe chown 'postgres' 'postgresql/9.4/main/pg_ident.conf' +maybe chgrp 'postgres' 'postgresql/9.4/main/pg_ident.conf' +maybe chmod 0640 'postgresql/9.4/main/pg_ident.conf' +maybe chown 'postgres' 'postgresql/9.4/main/postgresql.conf' +maybe chgrp 'postgres' 'postgresql/9.4/main/postgresql.conf' +maybe chmod 0644 'postgresql/9.4/main/postgresql.conf' +maybe chown 'postgres' 'postgresql/9.4/main/start.conf' +maybe chgrp 'postgres' 'postgresql/9.4/main/start.conf' +maybe chmod 0644 'postgresql/9.4/main/start.conf' maybe chmod 0755 'ppp' maybe chmod 0755 'ppp/ip-down.d' maybe chmod 0755 'ppp/ip-down.d/000resolvconf' @@ -1081,6 +1115,7 @@ maybe chmod 0640 'sudoers.d/hashbangctl' maybe chmod 0644 'sysctl.conf' maybe chmod 0755 'sysctl.d' maybe chmod 0644 'sysctl.d/10-dmsg.conf' +maybe chmod 0644 'sysctl.d/30-postgresql-shm.conf' maybe chmod 0644 'sysctl.d/README.sysctl' maybe chmod 0755 'sysstat' maybe chmod 0644 'sysstat/sysstat' @@ -1119,7 +1154,6 @@ maybe chmod 0644 'tudurc' maybe chmod 0644 'ucf.conf' maybe chmod 0755 'udev' maybe chmod 0755 'udev/hwdb.d' -maybe chmod 0755 'udev/rules.d' maybe chmod 0644 'udev/udev.conf' maybe chmod 0755 'ufw' maybe chmod 0755 'ufw/applications.d' diff --git a/apt/apt.conf.d/01autoremove-postgresql b/apt/apt.conf.d/01autoremove-postgresql new file mode 100644 index 0000000..b2cc335 --- /dev/null +++ b/apt/apt.conf.d/01autoremove-postgresql @@ -0,0 +1,17 @@ +// File installed by postgresql-common. Currently not updated automatically, +// but might be in future releases. +// +// We mark all PostgreSQL packages as NeverAutoRemove because otherwise apt +// would remove the old postgresql-x.y package when the "postgresql" meta +// package changes its dependencies to a new version, rendering the old +// database cluster inaccessible. As access to the cluster might depend on +// other modules (like datatypes), we use a pretty wide pattern here. We might +// tighten this to match only actually used PostgreSQL versions in the future. + +APT +{ + NeverAutoRemove + { + "^postgresql-"; + }; +}; diff --git a/init.d/postgresql b/init.d/postgresql new file mode 100755 index 0000000..579fdd2 --- /dev/null +++ b/init.d/postgresql @@ -0,0 +1,61 @@ +#!/bin/sh +set -e + +### BEGIN INIT INFO +# Provides: postgresql +# Required-Start: $local_fs $remote_fs $network $time +# Required-Stop: $local_fs $remote_fs $network $time +# Should-Start: $syslog +# Should-Stop: $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: PostgreSQL RDBMS server +### END INIT INFO + +# Setting environment variables for the postmaster here does not work; please +# set them in /etc/postgresql///environment instead. + +[ -r /usr/share/postgresql-common/init.d-functions ] || exit 0 + +. /usr/share/postgresql-common/init.d-functions + +# versions can be specified explicitly +if [ -n "$2" ]; then + versions="$2 $3 $4 $5 $6 $7 $8 $9" +else + get_versions +fi + +case "$1" in + start|stop|restart|reload) + if [ "$1" = "start" ]; then + create_socket_directory + fi + if [ -z "`pg_lsclusters -h`" ]; then + log_warning_msg 'No PostgreSQL clusters exist; see "man pg_createcluster"' + exit 0 + fi + for v in $versions; do + $1 $v || EXIT=$? + done + exit ${EXIT:-0} + ;; + status) + LS=`pg_lsclusters -h` + # no clusters -> unknown status + [ -n "$LS" ] || exit 4 + echo "$LS" | awk 'BEGIN {rc=0} {if (match($4, "down")) rc=3; printf ("%s/%s (port %s): %s\n", $1, $2, $3, $4)}; END {exit rc}' + ;; + force-reload) + for v in $versions; do + reload $v + done + ;; + *) + echo "Usage: $0 {start|stop|restart|reload|force-reload|status} [version ..]" + exit 1 + ;; +esac + +exit 0 + diff --git a/logrotate.d/postgresql-common b/logrotate.d/postgresql-common new file mode 100644 index 0000000..0cbf10a --- /dev/null +++ b/logrotate.d/postgresql-common @@ -0,0 +1,10 @@ +/var/log/postgresql/*.log { + weekly + rotate 10 + copytruncate + delaycompress + compress + notifempty + missingok + su root root +} diff --git a/packages.txt b/packages.txt index ef50b37..b146f82 100644 --- a/packages.txt +++ b/packages.txt @@ -11,6 +11,7 @@ apt-transport-https install apt-utils install aptitude install aptitude-common install +aptitude-doc-en install aria2 install aspell install aspell-en install @@ -33,6 +34,8 @@ binfmt-support install binutils install bitlbee install bitlbee-common install +blt install +bsd-mailx install bsdgames install bsdmainutils install bsdutils install @@ -67,7 +70,6 @@ dc install dconf-gsettings-backend:amd64 install dconf-service install dctrl-tools install -deb.torproject.org-keyring install debconf install debconf-i18n install debconf-utils install @@ -79,6 +81,7 @@ devscripts install dh-lua install dh-python install dictionaries-common install +diffstat install diffutils install discover install discover-data install @@ -89,9 +92,11 @@ dmsetup install dns-root-data install dnsutils install docutils-common install +docutils-doc install dos2unix install dpkg install dpkg-dev install +dput install duplicity install e2fslibs:amd64 install e2fsprogs install @@ -105,6 +110,7 @@ emacs24-common-non-dfsg install emacs24-nox install emacsen-common install encfs install +equivs install erlang-asn1 install erlang-base install erlang-crypto install @@ -115,6 +121,7 @@ erlang-public-key install erlang-runtime-tools install erlang-snmp install erlang-ssl install +erlang-syntax-tools install etckeeper install euca2ools install exuberant-ctags install @@ -123,13 +130,16 @@ figlet install file install findutils install firejail install +firmware-linux-free install fish install fish-common install fontconfig install fontconfig-config install fonts-dejavu-core install fonts-droid install +fonts-liberation install fonts-lyx install +freepats install frotz install fuse install g++ install @@ -145,6 +155,7 @@ gconf-service install gconf2 install gconf2-common install gdb install +gdbserver install geoip-database install gettext install gettext-base install @@ -152,6 +163,7 @@ gforth install gforth-common install gforth-lib:amd64 install ghc install +ghostscript install git install git-email install git-man install @@ -160,6 +172,7 @@ glib-networking:amd64 install glib-networking-common install glib-networking-services install gnuchess install +gnuchess-book install gnugo install gnupg install gnupg-agent install @@ -169,9 +182,12 @@ gnuplot-nox install gnuplot-tex install golang-go install golang-go-linux-amd64 install +golang-go.tools install golang-src install gpgv install +graphviz install grep install +groff install groff-base install grub-common install grub-pc install @@ -183,11 +199,13 @@ gstreamer0.10-gconf:amd64 install gstreamer0.10-nice:amd64 install gstreamer0.10-plugins-base:amd64 install gstreamer0.10-plugins-good:amd64 install +gstreamer0.10-x:amd64 install guile-2.0 install guile-2.0-dev install guile-2.0-libs:amd64 install gyp install gzip install +hardening-includes install hddtemp install hicolor-icon-theme install hostname install @@ -219,6 +237,7 @@ iproute2 install iptables install iputils-ping install ipxe-qemu install +irqbalance install irssi install isc-dhcp-client install isc-dhcp-common install @@ -238,6 +257,7 @@ kmod install krb5-locales install ksh install laptop-detect install +lbzip2 install ldap-utils install ldnsutils install less install @@ -255,6 +275,7 @@ libaprutil1:amd64 install libapt-inst1.5:amd64 install libapt-pkg-perl install libapt-pkg4.12:amd64 install +libarchive-zip-perl install libarchive13:amd64 install libasan1:amd64 install libasm4-java install @@ -274,11 +295,14 @@ libattr1:amd64 install libaudit-common install libaudit1:amd64 install libauparse0:amd64 install +libauthen-sasl-perl install libavahi-client3:amd64 install libavahi-common-data:amd64 install libavahi-common3:amd64 install libavahi-glib1:amd64 install libavc1394-0:amd64 install +libb-hooks-op-check-perl install +libbareword-filehandles-perl install libbasicobjects0:amd64 install libbind9-90 install libblas-common install @@ -300,6 +324,7 @@ libc-ares2:amd64 install libc-bin install libc-dev-bin install libc6:amd64 install +libc6-dbg:amd64 install libc6-dev:amd64 install libcaca0:amd64 install libcairo-gobject2:amd64 install @@ -310,13 +335,19 @@ libcap2:amd64 install libcap2-bin install libcdaudio1 install libcdparanoia0:amd64 install +libcdt5 install +libcgraph6 install libcilkrts5:amd64 install +libclass-accessor-perl install libclass-method-modifiers-perl install libclass-methodmaker-perl install +libclass-xsaccessor-perl install libcln6 install +libclone-perl install libcloog-isl4:amd64 install libcollection4:amd64 install libcomerr2:amd64 install +libcommon-sense-perl install libconfig-file-perl install libconvert-binhex-perl install libcrack2:amd64 install @@ -337,24 +368,35 @@ libdc1394-22:amd64 install libdca0:amd64 install libdconf1:amd64 install libdebconfclient0:amd64 install +libdevel-caller-perl install libdevel-globaldestruction-perl install +libdevel-lexalias-perl install libdevmapper1.02.1:amd64 install libdhash1:amd64 install libdigest-hmac-perl install libdirac-encoder0:amd64 install libdirectfb-1.2-9:amd64 install libdiscover2 install +libdistro-info-perl install +libdjvulibre-text install +libdjvulibre21:amd64 install libdns-export100 install libdns100 install libdpkg-perl install +libdrm-intel1:amd64 install +libdrm-nouveau2:amd64 install +libdrm-radeon1:amd64 install libdrm2:amd64 install libdv4:amd64 install libdvdnav4:amd64 install libdvdread4:amd64 install libedit2:amd64 install libee0 install +libelf1:amd64 install libelfg0:amd64 install +libemail-valid-perl install libenca0:amd64 install +libencode-locale-perl install libept1.4.12:amd64 install liberror-perl install libestr0 install @@ -366,6 +408,7 @@ libevent-openssl-2.0-5:amd64 install libevent-pthreads-2.0-5:amd64 install libexpat1:amd64 install libexpat1-dev:amd64 install +libexporter-lite-perl install libexporter-tiny-perl install libfaad2:amd64 install libfakeroot:amd64 install @@ -374,10 +417,13 @@ libffcall1 install libffi-dev:amd64 install libffi6:amd64 install libfftw3-double3:amd64 install +libfile-basedir-perl install libfile-fcntllock-perl install libfile-find-rule-perl install +libfile-listing-perl install libflac8:amd64 install libflite1:amd64 install +libfont-afm-perl install libfontconfig1:amd64 install libfreetype6:amd64 install libfribidi0:amd64 install @@ -390,6 +436,7 @@ libgcc-4.9-dev:amd64 install libgcc1:amd64 install libgconf-2-4:amd64 install libgcrypt20:amd64 install +libgd-perl install libgd3:amd64 install libgdbm3:amd64 install libgdk-pixbuf2.0-0:amd64 install @@ -398,10 +445,14 @@ libgeoip1:amd64 install libgettextpo-dev:amd64 install libgettextpo0:amd64 install libgfortran3:amd64 install +libgif4:amd64 install +libgl1-mesa-dri:amd64 install libgl1-mesa-glx:amd64 install +libglade2-0:amd64 install libglapi-mesa:amd64 install libglib2.0-0:amd64 install libglib2.0-data install +libglu1-mesa:amd64 install libgme0 install libgmp-dev:amd64 install libgmp10:amd64 install @@ -414,6 +465,8 @@ libgpg-error0:amd64 install libgpgme11:amd64 install libgpm2:amd64 install libgraphite2-3:amd64 install +libgs9 install +libgs9-common install libgsasl7 install libgsm1:amd64 install libgssapi-krb5-2:amd64 install @@ -430,22 +483,43 @@ libgumbo-dev:amd64 install libgumbo1:amd64 install libgupnp-1.0-4 install libgupnp-igd-1.0-4:amd64 install +libgvc6 install +libgvpr2 install libharfbuzz0b:amd64 install libhcrypto4-heimdal:amd64 install libheimbase1-heimdal:amd64 install libheimntlm0-heimdal:amd64 install libhogweed2:amd64 install +libhtml-form-perl install +libhtml-format-perl install +libhtml-parser-perl install +libhtml-tagset-perl install +libhtml-tree-perl install +libhttp-cookies-perl install +libhttp-daemon-perl install +libhttp-date-perl install +libhttp-message-perl install +libhttp-negotiate-perl install libhx509-5-heimdal:amd64 install +libice6:amd64 install libicu52:amd64 install +libid3tag0 install libidn11:amd64 install libiec61883-0:amd64 install libijs-0.35:amd64 install libilmbase6:amd64 install +libimlib2 install libimport-into-perl install +libindirect-perl install libini-config5:amd64 install +libio-html-perl install +libio-pty-perl install libio-socket-inet6-perl install libio-socket-ssl-perl install +libio-string-perl install +libio-stringy-perl install libipa-hbac0 install +libipc-run-perl install libirs-export91 install libisc-export95 install libisc95 install @@ -461,13 +535,14 @@ libjbig0:amd64 install libjbig2dec0 install libjemalloc1 install libjpeg62-turbo:amd64 install -libjs-excanvas deinstall libjs-jquery install libjs-jquery-ui install libjs-node-uuid install libjs-sphinxdoc install libjs-underscore install libjson-c2:amd64 install +libjson-perl install +libjson-xs-perl install libjsr166y-java install libk5crypto3:amd64 install libkate1 install @@ -484,8 +559,10 @@ libldap-2.4-2:amd64 install libldap2-dev:amd64 install libldb1:amd64 install libldns1 install +liblexical-sealrequirehints-perl install liblinear1:amd64 install liblist-moreutils-perl install +libllvm3.5:amd64 install liblocale-gettext-perl install liblockfile-bin install liblockfile1:amd64 install @@ -502,11 +579,14 @@ liblua5.2-dev:amd64 install liblua5.3-0:amd64 install liblua5.3-dev:amd64 install libluajit-5.1-common install +liblwp-mediatypes-perl install +liblwp-protocol-https-perl install liblwres90 install liblzma5:amd64 install liblzo2-2:amd64 install libmagic1:amd64 install libmagickcore-6.q16-2:amd64 install +libmagickcore-6.q16-2-extra:amd64 install libmagickwand-6.q16-2:amd64 install libmail-sendmail-perl install libmailtools-perl install @@ -528,11 +608,14 @@ libmpc3:amd64 install libmpcdec6:amd64 install libmpdec2:amd64 install libmpfr4:amd64 install +libmultidimensional-perl install libncurses5:amd64 install libncurses5-dev:amd64 install libncursesw5:amd64 install libncursesw5-dev:amd64 install libnet-dns-perl install +libnet-domain-tld-perl install +libnet-http-perl install libnet-idn-encode-perl install libnet-ip-perl install libnet-smtp-ssl-perl install @@ -552,6 +635,7 @@ libnss-sss:amd64 install libnss3:amd64 install libntdb1:amd64 install libntlm0:amd64 install +libnuma1:amd64 install libnumber-compare-perl install libofa0 install libogg0:amd64 install @@ -560,7 +644,9 @@ libopenal1:amd64 install libopenexr6:amd64 install libopus0:amd64 install liborc-0.4-0:amd64 install +libossp-uuid16:amd64 deinstall libp11-kit0:amd64 install +libpadwalker-perl install libpam-ldapd:amd64 install libpam-modules:amd64 install libpam-modules-bin install @@ -575,12 +661,17 @@ libpangocairo-1.0-0:amd64 install libpangoft2-1.0-0:amd64 install libpangox-1.0-0:amd64 install libpangoxft-1.0-0:amd64 install +libpaper-utils install libpaper1:amd64 install libparams-classify-perl install +libparse-debcontrol-perl install +libparse-debianchangelog-perl install libparted2:amd64 install libpath-utils1:amd64 install +libpathplan4 install libpcap0.8:amd64 install libpci3:amd64 install +libpciaccess0:amd64 install libpcre2-32-0:amd64 install libpcre3:amd64 install libpcre3-dev:amd64 install @@ -588,6 +679,7 @@ libpcrecpp0:amd64 install libpcsclite1:amd64 install libperl4-corelibs-perl install libperl5.20 install +libperlio-gzip-perl install libpipeline1:amd64 install libpixman-1-0:amd64 install libpng12-0:amd64 install @@ -595,11 +687,14 @@ libpolkit-agent-1-0:amd64 install libpolkit-backend-1-0:amd64 install libpolkit-gobject-1-0:amd64 install libpopt0:amd64 install +libpq5:amd64 install libprocps3:amd64 install libprotobuf-c1 install libprotobuf9:amd64 install libproxy1:amd64 install libpsl0:amd64 install +libpth20:amd64 install +libpulse0:amd64 install libpwquality-common install libpwquality1:amd64 install libpython-dev:amd64 install @@ -638,10 +733,10 @@ librlog5 install libroken18-heimdal:amd64 install librole-tiny-perl install librsvg2-2:amd64 install +librsvg2-common:amd64 install librsync1:amd64 install librtmp1:amd64 install libruby2.1:amd64 install -libruby2.2:amd64 install libsamplerate0:amd64 install libsasl2-2:amd64 install libsasl2-dev install @@ -662,6 +757,7 @@ libsigc++-2.0-0c2a:amd64 install libsigsegv2:amd64 install libslang2:amd64 install libslv2-9 install +libsm6:amd64 install libsmartcols1:amd64 install libsndfile1:amd64 install libsocket6-perl install @@ -684,6 +780,7 @@ libstdc++-4.9-dev:amd64 install libstdc++6:amd64 install libstrictures-perl install libsub-exporter-progressive-perl install +libsub-name-perl install libsvn1:amd64 install libsys-hostname-long-perl install libsystemd0:amd64 install @@ -700,22 +797,27 @@ libtevent0:amd64 install libtext-charwidth-perl install libtext-glob-perl install libtext-iconv-perl install +libtext-levenshtein-perl install libtext-template-perl install libtext-wrapi18n-perl install libthai-data install libthai0:amd64 install libtheora0:amd64 install +libtie-ixhash-perl install libtiff5:amd64 install libtimedate-perl install libtinfo-dev:amd64 install libtinfo5:amd64 install +libtk8.6:amd64 install libtokyocabinet9:amd64 install libtool install libtool-bin install libtorrent14:amd64 install libtre5:amd64 install libtsan0:amd64 install +libtxc-dxtn-s2tc0:amd64 install libtype-tiny-perl install +libtype-tiny-xs-perl install libubsan0:amd64 install libudev1:amd64 install libunbound2:amd64 install @@ -735,6 +837,7 @@ libv8-3.14.5 install libval14:amd64 install libvdeplug2 install libvisual-0.4-0:amd64 install +libvisual-0.4-plugins:amd64 install libvo-aacenc0:amd64 install libvo-amrwbenc0:amd64 install libvorbis0a:amd64 install @@ -742,16 +845,22 @@ libvorbisenc2:amd64 install libvpx1:amd64 install libwavpack1:amd64 install libwbclient0:amd64 install +libwebp5:amd64 install +libwebpdemux1:amd64 install +libwebpmux1:amd64 install libwildmidi-config install libwildmidi1:amd64 install libwind0-heimdal:amd64 install libwmf0.2-7:amd64 install libwrap0:amd64 install +libwww-perl install +libwww-robotrules-perl install libx11-6:amd64 install libx11-data install libx11-xcb1:amd64 install libxapian22 install libxau6:amd64 install +libxaw7:amd64 install libxcb-dri2-0:amd64 install libxcb-dri3-0:amd64 install libxcb-glx0:amd64 install @@ -764,6 +873,7 @@ libxcomposite1:amd64 install libxcursor1:amd64 install libxdamage1:amd64 install libxdmcp6:amd64 install +libxdot4 install libxen-4.4:amd64 install libxenstore3.0:amd64 install libxext6:amd64 install @@ -774,6 +884,7 @@ libxinerama1:amd64 install libxml2:amd64 install libxml2-dev:amd64 install libxmlrpc-core-c3 install +libxmu6:amd64 install libxmuu1:amd64 install libxpm4:amd64 install libxrandr2:amd64 install @@ -781,7 +892,10 @@ libxrender1:amd64 install libxshmfence1:amd64 install libxslt1-dev:amd64 install libxslt1.1:amd64 install +libxss1:amd64 install +libxt6:amd64 install libxtables10 install +libxtst6:amd64 install libxv1:amd64 install libxvidcore4:amd64 install libxxf86vm1:amd64 install @@ -790,10 +904,12 @@ libyaml-0-2:amd64 install libzephyr4:amd64 install libzvbi-common install libzvbi0:amd64 install +lintian install linux-base install linux-image-3.16.0-4-amd64 install linux-image-amd64 install linux-libc-dev:amd64 install +lksctp-tools install lm-sensors install locales install locales-all install @@ -819,8 +935,6 @@ manpages-dev install mawk install mc install mc-data install -mercurial install -mercurial-common install mime-support install mosh install mount install @@ -835,11 +949,13 @@ ncurses-base install ncurses-bin install ncurses-doc install ncurses-term install +ndiff install net-tools install netbase install netcat-traditional install nethack-common install nethack-console install +netpbm install nfacct install nmap install node-abbrev install @@ -914,6 +1030,7 @@ parted install pass install passwd install patch install +patchutils install pciutils install pep8 install perl install @@ -927,9 +1044,15 @@ policykit-1 install poppler-data install postfix install postfix-ldap install +postgresql install +postgresql-9.4 install +postgresql-client-9.4 install +postgresql-client-common install +postgresql-common install procmail install procps install psmisc install +psutils install pv install pwgen install pyflakes install @@ -938,6 +1061,7 @@ python-apt install python-apt-common install python-audit install python-boto install +python-cairo install python-cffi install python-characteristic install python-chardet install @@ -962,17 +1086,24 @@ python-ecdsa install python-flake8 install python-gdbm install python-geoip install +python-glade2 install +python-gobject-2 install +python-gtk2 install python-html5lib install python-html5lib-whl install python-httplib2 install +python-idna install +python-imaging install python-ipy install python-jinja2 install python-json-pointer install python-jsonpatch install +python-jwt install python-ldap install python-lockfile install python-lxml install python-markupsafe install +python-matplotlib install python-matplotlib-data install python-mccabe install python-minimal install @@ -984,8 +1115,11 @@ python-newt install python-nose install python-numpy install python-oauth install +python-oauthlib install python-openssl install +python-pam install python-paramiko install +python-pil:amd64 install python-pip install python-pip-whl install python-pkg-resources install @@ -996,12 +1130,15 @@ python-pyasn1 install python-pyasn1-modules install python-pycparser install python-pygments install +python-pygraphviz install python-pyparsing install python-reportbug install python-requestbuilder install python-requests install python-requests-whl install python-roman install +python-scipy install +python-selinux install python-serial install python-service-identity install python-setuptools install @@ -1014,6 +1151,7 @@ python-sss install python-stevedore install python-support install python-talloc install +python-tk install python-torctl install python-tox install python-twisted install @@ -1044,10 +1182,12 @@ python3-bottle install python3-chardet install python3-colorama install python3-crypto install +python3-debian install python3-dev install python3-distlib install python3-html5lib install python3-jinja2 install +python3-magic install python3-markupsafe install python3-minimal install python3-pip install @@ -1069,6 +1209,7 @@ qalc install qemu-slof install qemu-system-common install qemu-user install +qemu-user-binfmt install qemu-utils install qprint install qtcore4-l10n install @@ -1097,6 +1238,7 @@ sed install sensible-utils install sgml-base install shared-mime-info install +sharutils install shellcheck install siege install signing-party install @@ -1129,6 +1271,7 @@ systemd-sysv install sysv-rc install sysvinit install sysvinit-utils install +t1utils install tar install task-english install tasksel install @@ -1137,12 +1280,14 @@ tcl8.5 install tcpd install telnet install tig install +tk8.6-blt2.5 install tmux install toilet install toilet-fonts install topgit install tor install tor-arm install +tor-geoipdb install torsocks install traceroute install tree install @@ -1168,7 +1313,9 @@ virtualenv install virtualenv-clone install virtualenvwrapper install w3m install +w3m-img install wamerican install +wdiff install weechat install weechat-core install weechat-curses install @@ -1177,10 +1324,13 @@ wget install whiptail install whois install wyrd install +x11-common install xauth install +xclip install xdg-user-dirs install xkb-data install xml-core install +xsel install xz-utils install zangband-data install zile install diff --git a/postgresql-common/createcluster.conf b/postgresql-common/createcluster.conf new file mode 100644 index 0000000..935e341 --- /dev/null +++ b/postgresql-common/createcluster.conf @@ -0,0 +1,32 @@ +# Default values for pg_createcluster(8) +# Occurrences of '%v' are replaced by the major version number, +# and '%c' by the cluster name. Use '%%' for a literal '%'. + +# Create a "main" cluster when a new postgresql-x.y server package is installed +#create_main_cluster = true + +# Default start.conf value, must be one of "auto", "manual", and "disabled". +# See pg_createcluster(8) for more documentation. +#start_conf = 'auto' + +# Default data directory. +#data_directory = '/var/lib/postgresql/%v/%c' + +# Default directory for transaction logs +# Unset by default, i.e. pg_xlog remains in the data directory. +#xlogdir = '/var/lib/postgresql/xlog/%v/%c/pg_xlog' + +# Options to pass to initdb. +#initdb_options = '' + +# The following options are copied into the new cluster's postgresql.conf: + +# Enable SSL by default (using the "snakeoil" certificates installed by the +# ssl-cert package, unless configured otherwise here) +ssl = on + +# Put stats_temp_directory on tmpfs +stats_temp_directory = '/var/run/postgresql/%v-%c.pg_stat_tmp' + +# Add prefix to log lines +log_line_prefix = '%%t [%%p-%%l] %%q%%u@%%d ' diff --git a/postgresql-common/root.crt b/postgresql-common/root.crt new file mode 100644 index 0000000..6a1f174 --- /dev/null +++ b/postgresql-common/root.crt @@ -0,0 +1,11 @@ +This is a dummy root certificate file for PostgreSQL. To enable client side +authentication, add some certificates to it. Client certificates must be signed +with any certificate in this file to be accepted. + +A reasonable choice is to just symlink this file to +/etc/ssl/certs/ssl-cert-snakeoil.pem; in this case, client certificates need to +be signed by the postgresql server certificate, which might be desirable in +many cases. See chapter "Server Setup and Operation" in the PostgreSQL +documentation for details (in package postgresql-doc-9.2). + + file:///usr/share/doc/postgresql-doc-9.2/html/ssl-tcp.html diff --git a/postgresql-common/user_clusters b/postgresql-common/user_clusters new file mode 100644 index 0000000..d3522d5 --- /dev/null +++ b/postgresql-common/user_clusters @@ -0,0 +1,23 @@ +# This file maps users against the database clusters to which they +# will connect by default. Any user may create ~/.postgresqlrc which +# will supersede the defaults stored here. If a database is +# specified, that will be the one connected to by client tools if none +# is specified on the command line. If the database specified here is +# "*", this is interpreted as the database whose name is the same as +# the user's login. (Setting the database to "*" will provide the +# current default upstream behaviour for command line tools.) +# +# When pg_wrapper scans this file, the first matching line is used. +# It is a good idea to provide a default explicitly, with a final line +# where both user and group are set to "*". If there is no default, +# the implicit default is to connect to the cluster whose postmaster +# is listening on port 5432 and to the database matching the user's +# login name. +# +# In the context of this file, user and group refer to the Unix login +# or group, not to PostgreSQL users and groups. +# +# Please see user_clusters(5) and postgresqlrc(5) for more information. +# +# USER GROUP VERSION CLUSTER DATABASE + diff --git a/postgresql/9.4/main/environment b/postgresql/9.4/main/environment new file mode 100644 index 0000000..f8dee35 --- /dev/null +++ b/postgresql/9.4/main/environment @@ -0,0 +1,7 @@ +# environment variables for postmaster process +# This file has the same syntax as postgresql.conf: +# VARIABLE = simple_value +# VARIABLE2 = 'any value!' +# I. e. you need to enclose any value which does not only consist of letters, +# numbers, and '-', '_', '.' in single quotes. Shell commands are not +# evaluated. diff --git a/postgresql/9.4/main/pg_ctl.conf b/postgresql/9.4/main/pg_ctl.conf new file mode 100644 index 0000000..d33e363 --- /dev/null +++ b/postgresql/9.4/main/pg_ctl.conf @@ -0,0 +1,5 @@ +# Automatic pg_ctl configuration +# This configuration file contains cluster specific options to be passed to +# pg_ctl(1). + +pg_ctl_options = '' diff --git a/postgresql/9.4/main/pg_hba.conf b/postgresql/9.4/main/pg_hba.conf new file mode 100644 index 0000000..b708a88 --- /dev/null +++ b/postgresql/9.4/main/pg_hba.conf @@ -0,0 +1,99 @@ +# PostgreSQL Client Authentication Configuration File +# =================================================== +# +# Refer to the "Client Authentication" section in the PostgreSQL +# documentation for a complete description of this file. A short +# synopsis follows. +# +# This file controls: which hosts are allowed to connect, how clients +# are authenticated, which PostgreSQL user names they can use, which +# databases they can access. Records take one of these forms: +# +# local DATABASE USER METHOD [OPTIONS] +# host DATABASE USER ADDRESS METHOD [OPTIONS] +# hostssl DATABASE USER ADDRESS METHOD [OPTIONS] +# hostnossl DATABASE USER ADDRESS METHOD [OPTIONS] +# +# (The uppercase items must be replaced by actual values.) +# +# The first field is the connection type: "local" is a Unix-domain +# socket, "host" is either a plain or SSL-encrypted TCP/IP socket, +# "hostssl" is an SSL-encrypted TCP/IP socket, and "hostnossl" is a +# plain TCP/IP socket. +# +# DATABASE can be "all", "sameuser", "samerole", "replication", a +# database name, or a comma-separated list thereof. The "all" +# keyword does not match "replication". Access to replication +# must be enabled in a separate record (see example below). +# +# USER can be "all", a user name, a group name prefixed with "+", or a +# comma-separated list thereof. In both the DATABASE and USER fields +# you can also write a file name prefixed with "@" to include names +# from a separate file. +# +# ADDRESS specifies the set of hosts the record matches. It can be a +# host name, or it is made up of an IP address and a CIDR mask that is +# an integer (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that +# specifies the number of significant bits in the mask. A host name +# that starts with a dot (.) matches a suffix of the actual host name. +# Alternatively, you can write an IP address and netmask in separate +# columns to specify the set of hosts. Instead of a CIDR-address, you +# can write "samehost" to match any of the server's own IP addresses, +# or "samenet" to match any address in any subnet that the server is +# directly connected to. +# +# METHOD can be "trust", "reject", "md5", "password", "gss", "sspi", +# "ident", "peer", "pam", "ldap", "radius" or "cert". Note that +# "password" sends passwords in clear text; "md5" is preferred since +# it sends encrypted passwords. +# +# OPTIONS are a set of options for the authentication in the format +# NAME=VALUE. The available options depend on the different +# authentication methods -- refer to the "Client Authentication" +# section in the documentation for a list of which options are +# available for which authentication methods. +# +# Database and user names containing spaces, commas, quotes and other +# special characters must be quoted. Quoting one of the keywords +# "all", "sameuser", "samerole" or "replication" makes the name lose +# its special character, and just match a database or username with +# that name. +# +# This file is read on server startup and when the postmaster receives +# a SIGHUP signal. If you edit the file on a running system, you have +# to SIGHUP the postmaster for the changes to take effect. You can +# use "pg_ctl reload" to do that. + +# Put your actual configuration here +# ---------------------------------- +# +# If you want to allow non-local connections, you need to add more +# "host" records. In that case you will also need to make PostgreSQL +# listen on a non-local interface via the listen_addresses +# configuration parameter, or via the -i or -h command line switches. + + + + +# DO NOT DISABLE! +# If you change this first entry you will need to make sure that the +# database superuser can access the database using some other method. +# Noninteractive access to all databases is required during automatic +# maintenance (custom daily cronjobs, replication, and similar tasks). +# +# Database administrative login by Unix domain socket +local all postgres peer + +# TYPE DATABASE USER ADDRESS METHOD + +# "local" is for Unix domain socket connections only +local all all peer +# IPv4 local connections: +host all all 127.0.0.1/32 md5 +# IPv6 local connections: +host all all ::1/128 md5 +# Allow replication connections from localhost, by a user with the +# replication privilege. +#local replication postgres peer +#host replication postgres 127.0.0.1/32 md5 +#host replication postgres ::1/128 md5 diff --git a/postgresql/9.4/main/pg_ident.conf b/postgresql/9.4/main/pg_ident.conf new file mode 100644 index 0000000..a5870e6 --- /dev/null +++ b/postgresql/9.4/main/pg_ident.conf @@ -0,0 +1,42 @@ +# PostgreSQL User Name Maps +# ========================= +# +# Refer to the PostgreSQL documentation, chapter "Client +# Authentication" for a complete description. A short synopsis +# follows. +# +# This file controls PostgreSQL user name mapping. It maps external +# user names to their corresponding PostgreSQL user names. Records +# are of the form: +# +# MAPNAME SYSTEM-USERNAME PG-USERNAME +# +# (The uppercase quantities must be replaced by actual values.) +# +# MAPNAME is the (otherwise freely chosen) map name that was used in +# pg_hba.conf. SYSTEM-USERNAME is the detected user name of the +# client. PG-USERNAME is the requested PostgreSQL user name. The +# existence of a record specifies that SYSTEM-USERNAME may connect as +# PG-USERNAME. +# +# If SYSTEM-USERNAME starts with a slash (/), it will be treated as a +# regular expression. Optionally this can contain a capture (a +# parenthesized subexpression). The substring matching the capture +# will be substituted for \1 (backslash-one) if present in +# PG-USERNAME. +# +# Multiple maps may be specified in this file and used by pg_hba.conf. +# +# No map names are defined in the default configuration. If all +# system user names and PostgreSQL user names are the same, you don't +# need anything in this file. +# +# This file is read on server startup and when the postmaster receives +# a SIGHUP signal. If you edit the file on a running system, you have +# to SIGHUP the postmaster for the changes to take effect. You can +# use "pg_ctl reload" to do that. + +# Put your actual configuration here +# ---------------------------------- + +# MAPNAME SYSTEM-USERNAME PG-USERNAME diff --git a/postgresql/9.4/main/postgresql.conf b/postgresql/9.4/main/postgresql.conf new file mode 100644 index 0000000..7e99e1b --- /dev/null +++ b/postgresql/9.4/main/postgresql.conf @@ -0,0 +1,615 @@ +# ----------------------------- +# PostgreSQL configuration file +# ----------------------------- +# +# This file consists of lines of the form: +# +# name = value +# +# (The "=" is optional.) Whitespace may be used. Comments are introduced with +# "#" anywhere on a line. The complete list of parameter names and allowed +# values can be found in the PostgreSQL documentation. +# +# The commented-out settings shown in this file represent the default values. +# Re-commenting a setting is NOT sufficient to revert it to the default value; +# you need to reload the server. +# +# This file is read on server startup and when the server receives a SIGHUP +# signal. If you edit the file on a running system, you have to SIGHUP the +# server for the changes to take effect, or use "pg_ctl reload". Some +# parameters, which are marked below, require a server shutdown and restart to +# take effect. +# +# Any parameter can also be given as a command-line option to the server, e.g., +# "postgres -c log_connections=on". Some parameters can be changed at run time +# with the "SET" SQL command. +# +# Memory units: kB = kilobytes Time units: ms = milliseconds +# MB = megabytes s = seconds +# GB = gigabytes min = minutes +# TB = terabytes h = hours +# d = days + + +#------------------------------------------------------------------------------ +# FILE LOCATIONS +#------------------------------------------------------------------------------ + +# The default values of these variables are driven from the -D command-line +# option or PGDATA environment variable, represented here as ConfigDir. + +data_directory = '/var/lib/postgresql/9.4/main' # use data in another directory + # (change requires restart) +hba_file = '/etc/postgresql/9.4/main/pg_hba.conf' # host-based authentication file + # (change requires restart) +ident_file = '/etc/postgresql/9.4/main/pg_ident.conf' # ident configuration file + # (change requires restart) + +# If external_pid_file is not explicitly set, no extra PID file is written. +external_pid_file = '/var/run/postgresql/9.4-main.pid' # write an extra PID file + # (change requires restart) + + +#------------------------------------------------------------------------------ +# CONNECTIONS AND AUTHENTICATION +#------------------------------------------------------------------------------ + +# - Connection Settings - + +#listen_addresses = 'localhost' # what IP address(es) to listen on; + # comma-separated list of addresses; + # defaults to 'localhost'; use '*' for all + # (change requires restart) +port = 5432 # (change requires restart) +max_connections = 100 # (change requires restart) +# Note: Increasing max_connections costs ~400 bytes of shared memory per +# connection slot, plus lock space (see max_locks_per_transaction). +#superuser_reserved_connections = 3 # (change requires restart) +unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories + # (change requires restart) +#unix_socket_group = '' # (change requires restart) +#unix_socket_permissions = 0777 # begin with 0 to use octal notation + # (change requires restart) +#bonjour = off # advertise server via Bonjour + # (change requires restart) +#bonjour_name = '' # defaults to the computer name + # (change requires restart) + +# - Security and Authentication - + +#authentication_timeout = 1min # 1s-600s +#ssl = off # (change requires restart) +#ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers + # (change requires restart) +#ssl_prefer_server_ciphers = on # (change requires restart) +#ssl_ecdh_curve = 'prime256v1' # (change requires restart) +#ssl_renegotiation_limit = 0 # amount of data between renegotiations +#ssl_cert_file = 'server.crt' # (change requires restart) +#ssl_key_file = 'server.key' # (change requires restart) +#ssl_ca_file = '' # (change requires restart) +#ssl_crl_file = '' # (change requires restart) +#password_encryption = on +#db_user_namespace = off + +# GSSAPI using Kerberos +#krb_server_keyfile = '' +#krb_caseins_users = off + +# - TCP Keepalives - +# see "man 7 tcp" for details + +#tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds; + # 0 selects the system default +#tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds; + # 0 selects the system default +#tcp_keepalives_count = 0 # TCP_KEEPCNT; + # 0 selects the system default + + +#------------------------------------------------------------------------------ +# RESOURCE USAGE (except WAL) +#------------------------------------------------------------------------------ + +# - Memory - + +shared_buffers = 128MB # min 128kB + # (change requires restart) +#huge_pages = try # on, off, or try + # (change requires restart) +#temp_buffers = 8MB # min 800kB +#max_prepared_transactions = 0 # zero disables the feature + # (change requires restart) +# Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory +# per transaction slot, plus lock space (see max_locks_per_transaction). +# It is not advisable to set max_prepared_transactions nonzero unless you +# actively intend to use prepared transactions. +#work_mem = 4MB # min 64kB +#maintenance_work_mem = 64MB # min 1MB +#autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem +#max_stack_depth = 2MB # min 100kB +dynamic_shared_memory_type = posix # the default is the first option + # supported by the operating system: + # posix + # sysv + # windows + # mmap + # use none to disable dynamic shared memory + +# - Disk - + +#temp_file_limit = -1 # limits per-session temp file space + # in kB, or -1 for no limit + +# - Kernel Resource Usage - + +#max_files_per_process = 1000 # min 25 + # (change requires restart) +#shared_preload_libraries = '' # (change requires restart) + +# - Cost-Based Vacuum Delay - + +#vacuum_cost_delay = 0 # 0-100 milliseconds +#vacuum_cost_page_hit = 1 # 0-10000 credits +#vacuum_cost_page_miss = 10 # 0-10000 credits +#vacuum_cost_page_dirty = 20 # 0-10000 credits +#vacuum_cost_limit = 200 # 1-10000 credits + +# - Background Writer - + +#bgwriter_delay = 200ms # 10-10000ms between rounds +#bgwriter_lru_maxpages = 100 # 0-1000 max buffers written/round +#bgwriter_lru_multiplier = 2.0 # 0-10.0 multipler on buffers scanned/round + +# - Asynchronous Behavior - + +#effective_io_concurrency = 1 # 1-1000; 0 disables prefetching +#max_worker_processes = 8 + + +#------------------------------------------------------------------------------ +# WRITE AHEAD LOG +#------------------------------------------------------------------------------ + +# - Settings - + +#wal_level = minimal # minimal, archive, hot_standby, or logical + # (change requires restart) +#fsync = on # turns forced synchronization on or off +#synchronous_commit = on # synchronization level; + # off, local, remote_write, or on +#wal_sync_method = fsync # the default is the first option + # supported by the operating system: + # open_datasync + # fdatasync (default on Linux) + # fsync + # fsync_writethrough + # open_sync +#full_page_writes = on # recover from partial page writes +#wal_log_hints = off # also do full page writes of non-critical updates + # (change requires restart) +#wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers + # (change requires restart) +#wal_writer_delay = 200ms # 1-10000 milliseconds + +#commit_delay = 0 # range 0-100000, in microseconds +#commit_siblings = 5 # range 1-1000 + +# - Checkpoints - + +#checkpoint_segments = 3 # in logfile segments, min 1, 16MB each +#checkpoint_timeout = 5min # range 30s-1h +#checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0 +#checkpoint_warning = 30s # 0 disables + +# - Archiving - + +#archive_mode = off # allows archiving to be done + # (change requires restart) +#archive_command = '' # command to use to archive a logfile segment + # placeholders: %p = path of file to archive + # %f = file name only + # e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f' +#archive_timeout = 0 # force a logfile segment switch after this + # number of seconds; 0 disables + + +#------------------------------------------------------------------------------ +# REPLICATION +#------------------------------------------------------------------------------ + +# - Sending Server(s) - + +# Set these on the master and on any standby that will send replication data. + +#max_wal_senders = 0 # max number of walsender processes + # (change requires restart) +#wal_keep_segments = 0 # in logfile segments, 16MB each; 0 disables +#wal_sender_timeout = 60s # in milliseconds; 0 disables + +#max_replication_slots = 0 # max number of replication slots + # (change requires restart) + +# - Master Server - + +# These settings are ignored on a standby server. + +#synchronous_standby_names = '' # standby servers that provide sync rep + # comma-separated list of application_name + # from standby(s); '*' = all +#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed + +# - Standby Servers - + +# These settings are ignored on a master server. + +#hot_standby = off # "on" allows queries during recovery + # (change requires restart) +#max_standby_archive_delay = 30s # max delay before canceling queries + # when reading WAL from archive; + # -1 allows indefinite delay +#max_standby_streaming_delay = 30s # max delay before canceling queries + # when reading streaming WAL; + # -1 allows indefinite delay +#wal_receiver_status_interval = 10s # send replies at least this often + # 0 disables +#hot_standby_feedback = off # send info from standby to prevent + # query conflicts +#wal_receiver_timeout = 60s # time that receiver waits for + # communication from master + # in milliseconds; 0 disables + + +#------------------------------------------------------------------------------ +# QUERY TUNING +#------------------------------------------------------------------------------ + +# - Planner Method Configuration - + +#enable_bitmapscan = on +#enable_hashagg = on +#enable_hashjoin = on +#enable_indexscan = on +#enable_indexonlyscan = on +#enable_material = on +#enable_mergejoin = on +#enable_nestloop = on +#enable_seqscan = on +#enable_sort = on +#enable_tidscan = on + +# - Planner Cost Constants - + +#seq_page_cost = 1.0 # measured on an arbitrary scale +#random_page_cost = 4.0 # same scale as above +#cpu_tuple_cost = 0.01 # same scale as above +#cpu_index_tuple_cost = 0.005 # same scale as above +#cpu_operator_cost = 0.0025 # same scale as above +#effective_cache_size = 4GB + +# - Genetic Query Optimizer - + +#geqo = on +#geqo_threshold = 12 +#geqo_effort = 5 # range 1-10 +#geqo_pool_size = 0 # selects default based on effort +#geqo_generations = 0 # selects default based on effort +#geqo_selection_bias = 2.0 # range 1.5-2.0 +#geqo_seed = 0.0 # range 0.0-1.0 + +# - Other Planner Options - + +#default_statistics_target = 100 # range 1-10000 +#constraint_exclusion = partition # on, off, or partition +#cursor_tuple_fraction = 0.1 # range 0.0-1.0 +#from_collapse_limit = 8 +#join_collapse_limit = 8 # 1 disables collapsing of explicit + # JOIN clauses + + +#------------------------------------------------------------------------------ +# ERROR REPORTING AND LOGGING +#------------------------------------------------------------------------------ + +# - Where to Log - + +#log_destination = 'stderr' # Valid values are combinations of + # stderr, csvlog, syslog, and eventlog, + # depending on platform. csvlog + # requires logging_collector to be on. + +# This is used when logging to stderr: +#logging_collector = off # Enable capturing of stderr and csvlog + # into log files. Required to be on for + # csvlogs. + # (change requires restart) + +# These are only used if logging_collector is on: +#log_directory = 'pg_log' # directory where log files are written, + # can be absolute or relative to PGDATA +#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern, + # can include strftime() escapes +#log_file_mode = 0600 # creation mode for log files, + # begin with 0 to use octal notation +#log_truncate_on_rotation = off # If on, an existing log file with the + # same name as the new log file will be + # truncated rather than appended to. + # But such truncation only occurs on + # time-driven rotation, not on restarts + # or size-driven rotation. Default is + # off, meaning append to existing files + # in all cases. +#log_rotation_age = 1d # Automatic rotation of logfiles will + # happen after that time. 0 disables. +#log_rotation_size = 10MB # Automatic rotation of logfiles will + # happen after that much log output. + # 0 disables. + +# These are relevant when logging to syslog: +#syslog_facility = 'LOCAL0' +#syslog_ident = 'postgres' + +# This is only relevant when logging to eventlog (win32): +#event_source = 'PostgreSQL' + +# - When to Log - + +#client_min_messages = notice # values in order of decreasing detail: + # debug5 + # debug4 + # debug3 + # debug2 + # debug1 + # log + # notice + # warning + # error + +#log_min_messages = warning # values in order of decreasing detail: + # debug5 + # debug4 + # debug3 + # debug2 + # debug1 + # info + # notice + # warning + # error + # log + # fatal + # panic + +#log_min_error_statement = error # values in order of decreasing detail: + # debug5 + # debug4 + # debug3 + # debug2 + # debug1 + # info + # notice + # warning + # error + # log + # fatal + # panic (effectively off) + +#log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements + # and their durations, > 0 logs only + # statements running at least this number + # of milliseconds + + +# - What to Log - + +#debug_print_parse = off +#debug_print_rewritten = off +#debug_print_plan = off +#debug_pretty_print = on +#log_checkpoints = off +#log_connections = off +#log_disconnections = off +#log_duration = off +#log_error_verbosity = default # terse, default, or verbose messages +#log_hostname = off +log_line_prefix = '%t [%p-%l] %q%u@%d ' # special values: + # %a = application name + # %u = user name + # %d = database name + # %r = remote host and port + # %h = remote host + # %p = process ID + # %t = timestamp without milliseconds + # %m = timestamp with milliseconds + # %i = command tag + # %e = SQL state + # %c = session ID + # %l = session line number + # %s = session start timestamp + # %v = virtual transaction ID + # %x = transaction ID (0 if none) + # %q = stop here in non-session + # processes + # %% = '%' + # e.g. '<%u%%%d> ' +#log_lock_waits = off # log lock waits >= deadlock_timeout +#log_statement = 'none' # none, ddl, mod, all +#log_temp_files = -1 # log temporary files equal or larger + # than the specified size in kilobytes; + # -1 disables, 0 logs all temp files +log_timezone = 'UTC' + + +#------------------------------------------------------------------------------ +# RUNTIME STATISTICS +#------------------------------------------------------------------------------ + +# - Query/Index Statistics Collector - + +#track_activities = on +#track_counts = on +#track_io_timing = off +#track_functions = none # none, pl, all +#track_activity_query_size = 1024 # (change requires restart) +#update_process_title = on +stats_temp_directory = '/var/run/postgresql/9.4-main.pg_stat_tmp' + + +# - Statistics Monitoring - + +#log_parser_stats = off +#log_planner_stats = off +#log_executor_stats = off +#log_statement_stats = off + + +#------------------------------------------------------------------------------ +# AUTOVACUUM PARAMETERS +#------------------------------------------------------------------------------ + +#autovacuum = on # Enable autovacuum subprocess? 'on' + # requires track_counts to also be on. +#log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and + # their durations, > 0 logs only + # actions running at least this number + # of milliseconds. +#autovacuum_max_workers = 3 # max number of autovacuum subprocesses + # (change requires restart) +#autovacuum_naptime = 1min # time between autovacuum runs +#autovacuum_vacuum_threshold = 50 # min number of row updates before + # vacuum +#autovacuum_analyze_threshold = 50 # min number of row updates before + # analyze +#autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum +#autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze +#autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum + # (change requires restart) +#autovacuum_multixact_freeze_max_age = 400000000 # maximum multixact age + # before forced vacuum + # (change requires restart) +#autovacuum_vacuum_cost_delay = 20ms # default vacuum cost delay for + # autovacuum, in milliseconds; + # -1 means use vacuum_cost_delay +#autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for + # autovacuum, -1 means use + # vacuum_cost_limit + + +#------------------------------------------------------------------------------ +# CLIENT CONNECTION DEFAULTS +#------------------------------------------------------------------------------ + +# - Statement Behavior - + +#search_path = '"$user",public' # schema names +#default_tablespace = '' # a tablespace name, '' uses the default +#temp_tablespaces = '' # a list of tablespace names, '' uses + # only default tablespace +#check_function_bodies = on +#default_transaction_isolation = 'read committed' +#default_transaction_read_only = off +#default_transaction_deferrable = off +#session_replication_role = 'origin' +#statement_timeout = 0 # in milliseconds, 0 is disabled +#lock_timeout = 0 # in milliseconds, 0 is disabled +#vacuum_freeze_min_age = 50000000 +#vacuum_freeze_table_age = 150000000 +#vacuum_multixact_freeze_min_age = 5000000 +#vacuum_multixact_freeze_table_age = 150000000 +#bytea_output = 'hex' # hex, escape +#xmlbinary = 'base64' +#xmloption = 'content' +#gin_fuzzy_search_limit = 0 + +# - Locale and Formatting - + +datestyle = 'iso, mdy' +#intervalstyle = 'postgres' +timezone = 'UTC' +#timezone_abbreviations = 'Default' # Select the set of available time zone + # abbreviations. Currently, there are + # Default + # Australia (historical usage) + # India + # You can create your own file in + # share/timezonesets/. +#extra_float_digits = 0 # min -15, max 3 +#client_encoding = sql_ascii # actually, defaults to database + # encoding + +# These settings are initialized by initdb, but they can be changed. +lc_messages = 'en_US.UTF-8' # locale for system error message + # strings +lc_monetary = 'en_US.UTF-8' # locale for monetary formatting +lc_numeric = 'en_US.UTF-8' # locale for number formatting +lc_time = 'en_US.UTF-8' # locale for time formatting + +# default configuration for text search +default_text_search_config = 'pg_catalog.english' + +# - Other Defaults - + +#dynamic_library_path = '$libdir' +#local_preload_libraries = '' +#session_preload_libraries = '' + + +#------------------------------------------------------------------------------ +# LOCK MANAGEMENT +#------------------------------------------------------------------------------ + +#deadlock_timeout = 1s +#max_locks_per_transaction = 64 # min 10 + # (change requires restart) +# Note: Each lock table slot uses ~270 bytes of shared memory, and there are +# max_locks_per_transaction * (max_connections + max_prepared_transactions) +# lock table slots. +#max_pred_locks_per_transaction = 64 # min 10 + # (change requires restart) + + +#------------------------------------------------------------------------------ +# VERSION/PLATFORM COMPATIBILITY +#------------------------------------------------------------------------------ + +# - Previous PostgreSQL Versions - + +#array_nulls = on +#backslash_quote = safe_encoding # on, off, or safe_encoding +#default_with_oids = off +#escape_string_warning = on +#lo_compat_privileges = off +#quote_all_identifiers = off +#sql_inheritance = on +#standard_conforming_strings = on +#synchronize_seqscans = on + +# - Other Platforms and Clients - + +#transform_null_equals = off + + +#------------------------------------------------------------------------------ +# ERROR HANDLING +#------------------------------------------------------------------------------ + +#exit_on_error = off # terminate session on any error? +#restart_after_crash = on # reinitialize after backend crash? + + +#------------------------------------------------------------------------------ +# CONFIG FILE INCLUDES +#------------------------------------------------------------------------------ + +# These options allow settings to be loaded from files other than the +# default postgresql.conf. + +#include_dir = 'conf.d' # include files ending in '.conf' from + # directory 'conf.d' +#include_if_exists = 'exists.conf' # include file only if it exists +#include = 'special.conf' # include file + + +#------------------------------------------------------------------------------ +# CUSTOMIZED OPTIONS +#------------------------------------------------------------------------------ + +# Add settings for extensions here diff --git a/postgresql/9.4/main/start.conf b/postgresql/9.4/main/start.conf new file mode 100644 index 0000000..9613e2b --- /dev/null +++ b/postgresql/9.4/main/start.conf @@ -0,0 +1,9 @@ +# Automatic startup configuration +# auto: automatically start/stop the cluster in the init script +# manual: do not start/stop in init scripts, but allow manual startup with +# pg_ctlcluster +# disabled: do not allow manual startup with pg_ctlcluster (this can be easily +# circumvented and is only meant to be a small protection for +# accidents). + +auto diff --git a/rc0.d/K02postgresql b/rc0.d/K02postgresql new file mode 120000 index 0000000..313aae7 --- /dev/null +++ b/rc0.d/K02postgresql @@ -0,0 +1 @@ +../init.d/postgresql \ No newline at end of file diff --git a/rc1.d/K02postgresql b/rc1.d/K02postgresql new file mode 120000 index 0000000..313aae7 --- /dev/null +++ b/rc1.d/K02postgresql @@ -0,0 +1 @@ +../init.d/postgresql \ No newline at end of file diff --git a/rc2.d/S02postgresql b/rc2.d/S02postgresql new file mode 120000 index 0000000..313aae7 --- /dev/null +++ b/rc2.d/S02postgresql @@ -0,0 +1 @@ +../init.d/postgresql \ No newline at end of file diff --git a/rc3.d/S02postgresql b/rc3.d/S02postgresql new file mode 120000 index 0000000..313aae7 --- /dev/null +++ b/rc3.d/S02postgresql @@ -0,0 +1 @@ +../init.d/postgresql \ No newline at end of file diff --git a/rc4.d/S02postgresql b/rc4.d/S02postgresql new file mode 120000 index 0000000..313aae7 --- /dev/null +++ b/rc4.d/S02postgresql @@ -0,0 +1 @@ +../init.d/postgresql \ No newline at end of file diff --git a/rc5.d/S02postgresql b/rc5.d/S02postgresql new file mode 120000 index 0000000..313aae7 --- /dev/null +++ b/rc5.d/S02postgresql @@ -0,0 +1 @@ +../init.d/postgresql \ No newline at end of file diff --git a/rc6.d/K02postgresql b/rc6.d/K02postgresql new file mode 120000 index 0000000..313aae7 --- /dev/null +++ b/rc6.d/K02postgresql @@ -0,0 +1 @@ +../init.d/postgresql \ No newline at end of file diff --git a/sysctl.d/30-postgresql-shm.conf b/sysctl.d/30-postgresql-shm.conf new file mode 100644 index 0000000..f5e31ec --- /dev/null +++ b/sysctl.d/30-postgresql-shm.conf @@ -0,0 +1,12 @@ +# Shared memory settings for PostgreSQL on Linux + +# The settings here are upper limits; performance is not affected if the +# settings are larger than necessary. If other programs use shared memory as +# well, you will have to coordinate the size settings between them. + +# Maximum size of a single shared memory segment in bytes +#kernel.shmmax = 33554432 + +# Maximum total size of all shared memory segments in pages (normally 4096 bytes) +#kernel.shmall = 2097152 + diff --git a/systemd/system/multi-user.target.wants/postgresql.service b/systemd/system/multi-user.target.wants/postgresql.service new file mode 120000 index 0000000..fde7afb --- /dev/null +++ b/systemd/system/multi-user.target.wants/postgresql.service @@ -0,0 +1 @@ +/lib/systemd/system/postgresql.service \ No newline at end of file