From d30059bccc3ef6442d18b0bd84347c027458e5ea Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Wed, 19 Apr 2017 17:27:32 +0200 Subject: [PATCH 01/80] initial version of the postgresql modulemd file --- postgresql.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 postgresql.yaml diff --git a/postgresql.yaml b/postgresql.yaml new file mode 100644 index 0000000..993eee8 --- /dev/null +++ b/postgresql.yaml @@ -0,0 +1,42 @@ +document: modulemd +version: 1 +data: + # name, stream, version are filled in by the build system + #name: "" + #stream: "" + #version: 0 + summary: 'The programs needed to create and run a PostgreSQL server' + description: |- + PostgreSQL is an advanced Object-Relational database management system + (DBMS). The postgresql-server package contains the programs needed to + create and run a PostgreSQL server, which will in turn allow you to create + and maintain PostgreSQL databases. + license: + module: + - MIT + content: + - PostgreSQL + dependencies: + buildrequires: + base-runtime: f26 + common-build-dependencies: master + requires: + base-runtime: f26 + api: + rpms: + - postgresql + profiles: + default: + rpms: + - postgresql-server + client: + rpms: + - postgresql + filter: {} + components: + rpms: + # part of common-build-dependencies: + # multilib-rpm-config, gettext + uuid: + rationale: 'Build dependency (for postgresql-contrib).' + ref: f26 From 864a6140dc453734530a97a0dc5de4bfe6af698c Mon Sep 17 00:00:00 2001 From: "Petr \"Stone\" Hracek" Date: Thu, 20 Apr 2017 12:28:38 +0200 Subject: [PATCH 02/80] Add perl dependency Signed-off-by: Petr "Stone" Hracek --- postgresql.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/postgresql.yaml b/postgresql.yaml index 993eee8..2351873 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -19,7 +19,8 @@ data: dependencies: buildrequires: base-runtime: f26 - common-build-dependencies: master + common-build-dependencies: f26 + perl: f26 requires: base-runtime: f26 api: From ea0fe5cee5354f5b444acddfce53cdcdb31925ca Mon Sep 17 00:00:00 2001 From: "Petr \"Stone\" Hracek" Date: Thu, 20 Apr 2017 12:29:55 +0200 Subject: [PATCH 03/80] Using proper tag. Signed-off-by: Petr "Stone" Hracek --- postgresql.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index 2351873..0e98fea 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -18,11 +18,11 @@ data: - PostgreSQL dependencies: buildrequires: - base-runtime: f26 - common-build-dependencies: f26 - perl: f26 + base-runtime: master + common-build-dependencies: master + perl: master requires: - base-runtime: f26 + base-runtime: master api: rpms: - postgresql From 14f7b4ae610327a7a0541341c3ed6ccd759f8765 Mon Sep 17 00:00:00 2001 From: "Petr \"Stone\" Hracek" Date: Thu, 20 Apr 2017 12:55:32 +0200 Subject: [PATCH 04/80] Fix perl dependencies Signed-off-by: Petr "Stone" Hracek --- postgresql.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/postgresql.yaml b/postgresql.yaml index 0e98fea..4bcb6cb 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -23,6 +23,7 @@ data: perl: master requires: base-runtime: master + perl: master api: rpms: - postgresql @@ -38,6 +39,17 @@ data: rpms: # part of common-build-dependencies: # multilib-rpm-config, gettext + postgresql: + rationale: 'Build dependency (for postgresql-contrib).' + ref: f26 + buildorder: 10 + autoconf: + rationale: 'Build dependency (for postgresql-contrib).' + ref: f26 uuid: rationale: 'Build dependency (for postgresql-contrib).' ref: f26 + buildorder: 1 + perl-Data-UUID: + rationale: 'Build dependency (for postgresql-contrib).' + ref: f26 From f96469031557b754a5637eac79b6fdc32b5ff767 Mon Sep 17 00:00:00 2001 From: "Petr \"Stone\" Hracek" Date: Fri, 21 Apr 2017 13:22:38 +0200 Subject: [PATCH 05/80] Add common-build-dependencies-bootstrap Signed-off-by: Petr "Stone" Hracek --- postgresql.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index 4bcb6cb..4a3fef1 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -19,7 +19,9 @@ data: dependencies: buildrequires: base-runtime: master - common-build-dependencies: master + common-build-dependencies: f26 + common-build-dependencies-bootstrap: f26 + shared-userspace: f26 perl: master requires: base-runtime: master @@ -43,9 +45,6 @@ data: rationale: 'Build dependency (for postgresql-contrib).' ref: f26 buildorder: 10 - autoconf: - rationale: 'Build dependency (for postgresql-contrib).' - ref: f26 uuid: rationale: 'Build dependency (for postgresql-contrib).' ref: f26 From 398481abedba0ee1a2cb1876aac267822544afa1 Mon Sep 17 00:00:00 2001 From: "Petr \"Stone\" Hracek" Date: Mon, 24 Apr 2017 15:58:23 +0200 Subject: [PATCH 06/80] Add elinks to private-f27-modules Signed-off-by: Petr "Stone" Hracek --- postgresql.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/postgresql.yaml b/postgresql.yaml index 4a3fef1..73d78c5 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -52,3 +52,7 @@ data: perl-Data-UUID: rationale: 'Build dependency (for postgresql-contrib).' ref: f26 + elinks: + rationale: 'Build dependency (for postgresql-contrib).' + ref: private-f27-modules + buildorder: 3 From ba9d082c942d17210553725349920c0fc4e4149b Mon Sep 17 00:00:00 2001 From: Radoslav Pitonak Date: Thu, 4 May 2017 10:50:54 +0200 Subject: [PATCH 07/80] Dockerfile based on BRT, test suite for module --- Dockerfile | 51 ++++ Makefile | 15 ++ repos/fedora.repo | 5 + repos/postgresql.repo | 4 + root/help.1 | 190 +++++++++++++++ root/usr/bin/cgroup-limits | 92 ++++++++ root/usr/bin/container-entrypoint | 3 + root/usr/bin/run-postgresql | 28 +++ root/usr/bin/run-postgresql-master | 5 + root/usr/bin/run-postgresql-slave | 36 +++ root/usr/libexec/fix-permissions | 7 + .../container-scripts/postgresql/README.md | 98 ++++++++ .../container-scripts/postgresql/common.sh | 220 ++++++++++++++++++ ...ustom-postgresql-replication.conf.template | 7 + .../openshift-custom-postgresql.conf.template | 21 ++ .../openshift-custom-recovery.conf.template | 9 + tests/Makefile | 6 + tests/config.yaml | 14 ++ tests/rpmvalidator.py | 56 +++++ tests/sanity1.py | 46 ++++ tests/sanity2.py | 47 ++++ tests/simpleTest.py | 47 ++++ 22 files changed, 1007 insertions(+) create mode 100644 Dockerfile create mode 100644 Makefile create mode 100644 repos/fedora.repo create mode 100644 repos/postgresql.repo create mode 100644 root/help.1 create mode 100755 root/usr/bin/cgroup-limits create mode 100755 root/usr/bin/container-entrypoint create mode 100755 root/usr/bin/run-postgresql create mode 100755 root/usr/bin/run-postgresql-master create mode 100755 root/usr/bin/run-postgresql-slave create mode 100755 root/usr/libexec/fix-permissions create mode 100644 root/usr/share/container-scripts/postgresql/README.md create mode 100644 root/usr/share/container-scripts/postgresql/common.sh create mode 100644 root/usr/share/container-scripts/postgresql/openshift-custom-postgresql-replication.conf.template create mode 100644 root/usr/share/container-scripts/postgresql/openshift-custom-postgresql.conf.template create mode 100644 root/usr/share/container-scripts/postgresql/openshift-custom-recovery.conf.template create mode 100644 tests/Makefile create mode 100644 tests/config.yaml create mode 100644 tests/rpmvalidator.py create mode 100644 tests/sanity1.py create mode 100644 tests/sanity2.py create mode 100644 tests/simpleTest.py diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ae334f6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,51 @@ +FROM baseruntime/baseruntime:latest + +# PostgreSQL image for OpenShift. +# Volumes: +# * /var/lib/psql/data - Database cluster for PostgreSQL +# Environment: +# * $POSTGRESQL_USER - Database user name +# * $POSTGRESQL_PASSWORD - User's password +# * $POSTGRESQL_DATABASE - Name of the database to create +# * $POSTGRESQL_ADMIN_PASSWORD (Optional) - Password for the 'postgres' +# PostgreSQL administrative account + +ENV POSTGRESQL_VERSION=9.5 \ + HOME=/var/lib/pgsql \ + PGUSER=postgres + +LABEL io.k8s.description="PostgreSQL is an advanced Object-Relational database management system" \ + io.k8s.display-name="PostgreSQL 9.5" \ + io.openshift.expose-services="5432:postgresql" \ + io.openshift.tags="database,postgresql,postgresql95" \ + com.redhat.component="postgresql" \ + maintainer="Pavel Raiskup " \ + name="$FCG/postgresql" \ + version="0" \ + release="1.$DISTTAG" \ + architecture="x86_64" \ + usage="Run without arguments to get usage info." \ + help="/help.1" + +EXPOSE 5432 + +ADD root / + +COPY repos/* /etc/yum.repos.d/ + +RUN microdnf --nodocs --enablerepo postgresql install -y postgresql postgresql-server postgresql-contrib && \ + microdnf --nodocs --enablerepo fedora install -y rsync tar gettext bind-utils nss_wrapper findutils python && \ + microdnf clean all && \ + test "$(id postgres)" = "uid=26(postgres) gid=26(postgres) groups=26(postgres)" && \ + mkdir -p /var/lib/pgsql/data && \ + /usr/libexec/fix-permissions /var/lib/pgsql && \ + /usr/libexec/fix-permissions /var/run/postgresql + +# Get prefix path and path to scripts rather than hard-code them in scripts +ENV CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/postgresql + +VOLUME ["/var/lib/pgsql/data"] + +USER 26 + +CMD ["run-postgresql"] diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c635e5e --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +IMAGE_NAME = postgresql + +MODULEMDURL=file://postgresql.yaml + +default: run + +build: + docker build --tag=$(IMAGE_NAME) . + +run: build + docker run -d $(IMAGE_NAME) + +test: build + cd tests; MODULE=docker MODULEMD=$(MODULEMDURL) URL="docker=$(IMAGE_NAME)" make all + cd tests; MODULE=rpm MODULEMD=$(MODULEMDURL) URL="docker=$(IMAGE_NAME)" make all diff --git a/repos/fedora.repo b/repos/fedora.repo new file mode 100644 index 0000000..f86d71c --- /dev/null +++ b/repos/fedora.repo @@ -0,0 +1,5 @@ +[fedora] +name=fedora +baseurl=https://mirrors.nic.cz/fedora/linux/development/26/Everything/x86_64/os/ +enabled=0 + diff --git a/repos/postgresql.repo b/repos/postgresql.repo new file mode 100644 index 0000000..584b510 --- /dev/null +++ b/repos/postgresql.repo @@ -0,0 +1,4 @@ +[postgresql] +name=postgresql +baseurl=https://kojipkgs.fedoraproject.org/repos/module-5a0a295c9673c2a1/latest/x86_64/ +enabled=0 diff --git a/root/help.1 b/root/help.1 new file mode 100644 index 0000000..89c84d9 --- /dev/null +++ b/root/help.1 @@ -0,0 +1,190 @@ +.\"t +.\" WARNING: Do not edit this file manually, it is generated from README.md automatically. +.\" +.\"t +.\" Automatically generated by Pandoc 1.16.0.2 +.\" +.TH "POSTGRESQL\-95\-RHEL7" "1" "February 22, 2017" "Container Image Pages" "" +.hy +.SH PostgreSQL Docker image +.PP +This repository contains Dockerfiles for PostgreSQL images for general +usage and OpenShift. +Users can choose between RHEL and CentOS based images. +.SS Environment variables and volumes +.PP +The image recognizes the following environment variables that you can +set during initialization by passing \f[C]\-e\ VAR=VALUE\f[] to the +Docker run command. +.PP +.TS +tab(@); +lw(26.7n) lw(43.3n). +T{ +Variable name +T}@T{ +Description +T} +_ +T{ +\f[C]POSTGRESQL_USER\f[] +T}@T{ +User name for PostgreSQL account to be created +T} +T{ +\f[C]POSTGRESQL_PASSWORD\f[] +T}@T{ +Password for the user account +T} +T{ +\f[C]POSTGRESQL_DATABASE\f[] +T}@T{ +Database name +T} +T{ +\f[C]POSTGRESQL_ADMIN_PASSWORD\f[] +T}@T{ +Password for the \f[C]postgres\f[] admin account (optional) +T} +.TE +.PP +The following environment variables influence the PostgreSQL +configuration file. +They are all optional. +.PP +.TS +tab(@); +lw(15.7n) lw(37.6n) lw(16.7n). +T{ +Variable name +T}@T{ +Description +T}@T{ +Default +T} +_ +T{ +\f[C]POSTGRESQL_MAX_CONNECTIONS\f[] +T}@T{ +The maximum number of client connections allowed +T}@T{ +100 +T} +T{ +\f[C]POSTGRESQL_MAX_PREPARED_TRANSACTIONS\f[] +T}@T{ +Sets the maximum number of transactions that can be in the "prepared" +state. +If you are using prepared transactions, you will probably want this to +be at least as large as max_connections +T}@T{ +0 +T} +T{ +\f[C]POSTGRESQL_SHARED_BUFFERS\f[] +T}@T{ +Sets how much memory is dedicated to PostgreSQL to use for caching data +T}@T{ +32M +T} +T{ +\f[C]POSTGRESQL_EFFECTIVE_CACHE_SIZE\f[] +T}@T{ +Set to an estimate of how much memory is available for disk caching by +the operating system and within the database itself +T}@T{ +128M +T} +.TE +.PP +You can also set the following mount points by passing the +\f[C]\-v\ /host:/container\f[] flag to Docker. +.PP +.TS +tab(@); +l l. +T{ +Volume mount point +T}@T{ +Description +T} +_ +T{ +\f[C]/var/lib/pgsql/data\f[] +T}@T{ +PostgreSQL database cluster directory +T} +.TE +.PP +\f[B]Notice: When mouting a directory from the host into the container, +ensure that the mounted directory has the appropriate permissions and +that the owner and group of the directory matches the user UID or name +which is running inside the container.\f[] +.SS Usage +.PP +For this, we will assume that you are using the +\f[C]openshift/postgresql\-92\-centos7\f[] image. +If you want to set only the mandatory environment variables and not +store the database in a host directory, execute the following command: +.IP +.nf +\f[C] +$\ docker\ run\ \-d\ \-\-name\ postgresql_database\ \-e\ POSTGRESQL_USER=user\ \-e\ POSTGRESQL_PASSWORD=pass\ \-e\ POSTGRESQL_DATABASE=db\ \-p\ 5432:5432\ openshift/postgresql\-92\-centos7 +\f[] +.fi +.PP +This will create a container named \f[C]postgresql_database\f[] running +PostgreSQL with database \f[C]db\f[] and user with credentials +\f[C]user:pass\f[]. +Port 5432 will be exposed and mapped to the host. +If you want your database to be persistent across container executions, +also add a \f[C]\-v\ /host/db/path:/var/lib/pgsql/data\f[] argument. +This will be the PostgreSQL database cluster directory. +.PP +If the database cluster directory is not initialized, the entrypoint +script will first run +\f[C]initdb\f[] (http://www.postgresql.org/docs/9.2/static/app-initdb.html) +and setup necessary database users and passwords. +After the database is initialized, or if it was already present, +\f[C]postgres\f[] (http://www.postgresql.org/docs/9.2/static/app-postgres.html) +is executed and will run as PID 1. +You can stop the detached container by running +\f[C]docker\ stop\ postgresql_database\f[]. +.SS PostgreSQL auto\-tuning +.PP +When the PostgreSQL image is run with the \f[C]\-\-memory\f[] parameter +set and if there are no values provided for +\f[C]POSTGRESQL_SHARED_BUFFERS\f[] and +\f[C]POSTGRESQL_EFFECTIVE_CACHE_SIZE\f[] those values are automatically +calculated based on the value provided in the \f[C]\-\-memory\f[] +parameter. +.PP +The values are calculated based on the +upstream (https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server) +formulas. +For the \f[C]shared_buffers\f[] we use 1/4 of given memory and for the +\f[C]effective_cache_size\f[] we set the value to 1/2 of the given +memory. +.SS PostgreSQL admin account +.PP +The admin account \f[C]postgres\f[] has no password set by default, only +allowing local connections. +You can set it by setting the \f[C]POSTGRESQL_ADMIN_PASSWORD\f[] +environment variable when initializing your container. +This will allow you to login to the \f[C]postgres\f[] account remotely. +Local connections will still not require a password. +.SS Changing passwords +.PP +Since passwords are part of the image configuration, the only supported +method to change passwords for the database user +(\f[C]POSTGRESQL_USER\f[]) and \f[C]postgres\f[] admin user is by +changing the environment variables \f[C]POSTGRESQL_PASSWORD\f[] and +\f[C]POSTGRESQL_ADMIN_PASSWORD\f[], respectively. +.PP +Changing database passwords through SQL statements or any way other than +through the environment variables aforementioned will cause a mismatch +between the values stored in the variables and the actual passwords. +Whenever a database container starts it will reset the passwords to the +values stored in the environment variables. +.SH AUTHORS +Red Hat. diff --git a/root/usr/bin/cgroup-limits b/root/usr/bin/cgroup-limits new file mode 100755 index 0000000..b9d4edc --- /dev/null +++ b/root/usr/bin/cgroup-limits @@ -0,0 +1,92 @@ +#!/usr/bin/python + +""" +Script for parsing cgroup information + +This script will read some limits from the cgroup system and parse +them, printing out "VARIABLE=VALUE" on each line for every limit that is +successfully read. Output of this script can be directly fed into +bash's export command. Recommended usage from a bash script: + + set -o errexit + export_vars=$(cgroup-limits) ; export $export_vars + +Variables currently supported: + MAX_MEMORY_LIMIT_IN_BYTES + Maximum possible limit MEMORY_LIMIT_IN_BYTES can have. This is + currently constant value of 9223372036854775807. + MEMORY_LIMIT_IN_BYTES + Maximum amount of user memory in bytes. If this value is set + to the same value as MAX_MEMORY_LIMIT_IN_BYTES, it means that + there is no limit set. The value is taken from + /sys/fs/cgroup/memory/memory.limit_in_bytes + NUMBER_OF_CORES + Number of detected CPU cores that can be used. This value is + calculated from /sys/fs/cgroup/cpuset/cpuset.cpus + NO_MEMORY_LIMIT + Set to "true" if MEMORY_LIMIT_IN_BYTES is so high that the caller + can act as if no memory limit was set. Undefined otherwise. +""" + +from __future__ import print_function +import sys + + +def _read_file(path): + try: + with open(path, 'r') as f: + return f.read().strip() + except IOError: + return None + + +def get_memory_limit(): + """ + Read memory limit, in bytes. + """ + + limit = _read_file('/sys/fs/cgroup/memory/memory.limit_in_bytes') + if limit is None or not limit.isdigit(): + print("Warning: Can't detect memory limit from cgroups", + file=sys.stderr) + return None + return int(limit) + + +def get_number_of_cores(): + """ + Read number of CPU cores. + """ + + core_count = 0 + + line = _read_file('/sys/fs/cgroup/cpuset/cpuset.cpus') + if line is None: + print("Warning: Can't detect number of CPU cores from cgroups", + file=sys.stderr) + return None + + for group in line.split(','): + core_ids = list(map(int, group.split('-'))) + if len(core_ids) == 2: + core_count += core_ids[1] - core_ids[0] + 1 + else: + core_count += 1 + + return core_count + + +if __name__ == "__main__": + env_vars = { + "MAX_MEMORY_LIMIT_IN_BYTES": 9223372036854775807, + "MEMORY_LIMIT_IN_BYTES": get_memory_limit(), + "NUMBER_OF_CORES": get_number_of_cores() + } + + env_vars = {k: v for k, v in env_vars.items() if v is not None} + + if env_vars.get("MEMORY_LIMIT_IN_BYTES", 0) >= 92233720368547: + env_vars["NO_MEMORY_LIMIT"] = "true" + + for key, value in env_vars.items(): + print("{0}={1}".format(key, value)) diff --git a/root/usr/bin/container-entrypoint b/root/usr/bin/container-entrypoint new file mode 100755 index 0000000..5fc4448 --- /dev/null +++ b/root/usr/bin/container-entrypoint @@ -0,0 +1,3 @@ +#!/bin/bash + +exec "$@" diff --git a/root/usr/bin/run-postgresql b/root/usr/bin/run-postgresql new file mode 100755 index 0000000..1c8de78 --- /dev/null +++ b/root/usr/bin/run-postgresql @@ -0,0 +1,28 @@ +#!/bin/bash + +export ENABLE_REPLICATION=${ENABLE_REPLICATION:-false} + +set -eu +export_vars=$(cgroup-limits) ; export $export_vars + +source "${CONTAINER_SCRIPTS_PATH}/common.sh" + +set_pgdata +check_env_vars +generate_passwd_file +generate_postgresql_config + +if [ ! -f "$PGDATA/postgresql.conf" ]; then + initialize_database + NEED_TO_CREATE_USERS=yes +fi + +pg_ctl -w start -o "-h ''" +if [ "${NEED_TO_CREATE_USERS:-}" == "yes" ]; then + create_users +fi +set_passwords +pg_ctl stop + +unset_env_vars +exec postgres "$@" diff --git a/root/usr/bin/run-postgresql-master b/root/usr/bin/run-postgresql-master new file mode 100755 index 0000000..79e7cc2 --- /dev/null +++ b/root/usr/bin/run-postgresql-master @@ -0,0 +1,5 @@ +#!/bin/bash + +export ENABLE_REPLICATION=true + +exec run-postgresql "$@" diff --git a/root/usr/bin/run-postgresql-slave b/root/usr/bin/run-postgresql-slave new file mode 100755 index 0000000..5d42d0d --- /dev/null +++ b/root/usr/bin/run-postgresql-slave @@ -0,0 +1,36 @@ +#!/bin/bash + +export ENABLE_REPLICATION=true + +set -eu +export_vars=$(cgroup-limits) ; export $export_vars + +source "$CONTAINER_SCRIPTS_PATH"/common.sh + +set_pgdata + +function initialize_replica() { + echo "Initializing PostgreSQL slave ..." + # TODO: Validate and reuse existing data? + rm -rf $PGDATA + PGPASSWORD="${POSTGRESQL_MASTER_PASSWORD}" pg_basebackup -x --no-password --pgdata ${PGDATA} --host=${MASTER_FQDN} --port=5432 -U "${POSTGRESQL_MASTER_USER}" + + # PostgreSQL recovery configuration. + generate_postgresql_recovery_config + cat >> "$PGDATA/recovery.conf" <&2 "error: $1" + fi + + cat >&2 </dev/null) + # FIXME: This is for debugging (docker run) + if [ -v POSTGRESQL_MASTER_IP ]; then + endpoints=${POSTGRESQL_MASTER_IP:-} + fi + if [ -z "$endpoints" ]; then + >&2 echo "Failed to resolve PostgreSQL master IP address" + exit 3 + fi + echo -n "$(echo $endpoints | cut -d ' ' -f 1)" +} + +# New config is generated every time a container is created. It only contains +# additional custom settings and is included from $PGDATA/postgresql.conf. +function generate_postgresql_config() { + envsubst \ + < "${CONTAINER_SCRIPTS_PATH}/openshift-custom-postgresql.conf.template" \ + > "${POSTGRESQL_CONFIG_FILE}" + + if [ "${ENABLE_REPLICATION}" == "true" ]; then + envsubst \ + < "${CONTAINER_SCRIPTS_PATH}/openshift-custom-postgresql-replication.conf.template" \ + >> "${POSTGRESQL_CONFIG_FILE}" + fi +} + +function generate_postgresql_recovery_config() { + envsubst \ + < "${CONTAINER_SCRIPTS_PATH}/openshift-custom-recovery.conf.template" \ + > "${POSTGRESQL_RECOVERY_FILE}" +} + +# Generate passwd file based on current uid +function generate_passwd_file() { + export USER_ID=$(id -u) + export GROUP_ID=$(id -g) + grep -v ^postgres /etc/passwd > "$HOME/passwd" + echo "postgres:x:${USER_ID}:${GROUP_ID}:PostgreSQL Server:${HOME}:/bin/bash" >> "$HOME/passwd" + export LD_PRELOAD=libnss_wrapper.so + export NSS_WRAPPER_PASSWD=${HOME}/passwd + export NSS_WRAPPER_GROUP=/etc/group +} + +function initialize_database() { + # Initialize the database cluster with utf8 support enabled by default. + # This might affect performance, see: + # http://www.postgresql.org/docs/9.5/static/locale.html + LANG=${LANG:-en_US.utf8} initdb + + # PostgreSQL configuration. + cat >> "$PGDATA/postgresql.conf" <> "$PGDATA/pg_hba.conf" < +# + +from avocado import main +from moduleframework import module_framework + + +class ExampleRpmValidation(module_framework.AvocadoTest): + """ + :avocado: enable + """ + fhs_base_paths = [ + '/bin', + '/boot', + '/dev', + '/etc', + '/home', + '/lib', + '/lib64', + '/media', + '/mnt', + '/opt', + '/proc', + '/root', + '/run', + '/sbin', + '/sys', + '/srv', + '/tmp', + '/usr/bin' + ] + + def testPaths(self): + self.start() + for directory in self.fhs_base_paths: + self.run("test -d %s" % directory) diff --git a/tests/sanity1.py b/tests/sanity1.py new file mode 100644 index 0000000..677abff --- /dev/null +++ b/tests/sanity1.py @@ -0,0 +1,46 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# This Modularity Testing Framework helps you to write tests for modules +# Copyright (C) 2017 Red Hat, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# he Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Authors: Rado Pitonak +# + +from avocado import main +from avocado.core import exceptions +from moduleframework import module_framework + + +class SanityCheck1(module_framework.AvocadoTest): + """ + :avocado: enable + """ + + def test1(self): + self.start() + self.run("ls / | grep bin") + + # check if perl is installed in the right version. + def test2PostgresVersion(self): + postgresVersion = "9.6" + self.start() + self.run("postgres --version | grep " + postgresVersion) + + +if __name__ == '__main__': + main() diff --git a/tests/sanity2.py b/tests/sanity2.py new file mode 100644 index 0000000..a6bee42 --- /dev/null +++ b/tests/sanity2.py @@ -0,0 +1,47 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# This Modularity Testing Framework helps you to write tests for modules +# Copyright (C) 2017 Red Hat, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# he Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Authors: Rado Pitonak +# + +from avocado import main +from avocado.core import exceptions +from moduleframework import module_framework +import time + + +class SanityCheck2(module_framework.AvocadoTest): + """ + :avocado: enable + """ + + def testConnectToDB(self): + self.start() + time.sleep(5) + self.run("psql -U $POSTGRESQL_USER -d $POSTGRESQL_DATABASE -c 'SELECT 1'") + + def testCreateTable(self): + self.start() + time.sleep(5) + self.run("psql -U $POSTGRESQL_USER -d $POSTGRESQL_DATABASE -c 'CREATE TABLE mytable(ID INT PRIMARY KEY NOT NULL);'") + + +if __name__ == '__main__': + main() diff --git a/tests/simpleTest.py b/tests/simpleTest.py new file mode 100644 index 0000000..780e387 --- /dev/null +++ b/tests/simpleTest.py @@ -0,0 +1,47 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# This Modularity Testing Framework helps you to write tests for modules +# Copyright (C) 2017 Red Hat, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# he Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Authors: Jan Scotka +# + +from moduleframework import module_framework +import os + + +class simpleTests(module_framework.AvocadoTest): + """ + :avocado: enable + """ + + def testPath(self): + print ">>>>>>>>>>>>>> ", module_framework.__file__ + print ">>>>>>>>>>>>>> ", __file__ + + def testAssertIn(self): + self.start() + self.assertIn("sbin", self.run("ls /").stdout) + + def testInsideModule(self): + self.start() + self.assertEqual("a", self.run("echo a").stdout.strip()) + + def testCommandOnHost(self): + self.start() + self.assertEqual("a", self.runHost("echo a").stdout.strip()) From 0603455e67820227129fe5fa8db4f2ff32904ca5 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Fri, 25 Aug 2017 10:34:51 +0200 Subject: [PATCH 08/80] import modulemd generated by dependency-report --- postgresql.yaml | 77 ++++++++++++++----------------------------------- 1 file changed, 22 insertions(+), 55 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index 73d78c5..36e1375 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -1,58 +1,25 @@ document: modulemd version: 1 data: - # name, stream, version are filled in by the build system - #name: "" - #stream: "" - #version: 0 - summary: 'The programs needed to create and run a PostgreSQL server' - description: |- - PostgreSQL is an advanced Object-Relational database management system - (DBMS). The postgresql-server package contains the programs needed to - create and run a PostgreSQL server, which will in turn allow you to create - and maintain PostgreSQL databases. - license: - module: - - MIT - content: - - PostgreSQL - dependencies: - buildrequires: - base-runtime: master - common-build-dependencies: f26 - common-build-dependencies-bootstrap: f26 - shared-userspace: f26 - perl: master - requires: - base-runtime: master - perl: master - api: - rpms: - - postgresql - profiles: - default: - rpms: - - postgresql-server - client: - rpms: - - postgresql - filter: {} - components: - rpms: - # part of common-build-dependencies: - # multilib-rpm-config, gettext - postgresql: - rationale: 'Build dependency (for postgresql-contrib).' - ref: f26 - buildorder: 10 - uuid: - rationale: 'Build dependency (for postgresql-contrib).' - ref: f26 - buildorder: 1 - perl-Data-UUID: - rationale: 'Build dependency (for postgresql-contrib).' - ref: f26 - elinks: - rationale: 'Build dependency (for postgresql-contrib).' - ref: private-f27-modules - buildorder: 3 + summary: postgresql module + description: This postgresql has been generated + license: + module: [ MIT ] + dependencies: + buildrequires: + bootstrap: master + requires: + platform: master + platform-placeholder: master + references: + community: https://docs.pagure.org/modularity/ + documentation: https://github.com/modularity-modules/postgresql + tracker: https://github.com/modularity-modules/postgresql + components: + rpms: + postgresql: + rationale: Generated. + ref: master. + uuid: + rationale: Generated. + ref: master. From 6cdab777aa5ae36faab6b9f74f4b2deb3c4b315a Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Fri, 25 Aug 2017 10:40:55 +0200 Subject: [PATCH 09/80] reindent --- postgresql.yaml | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index 36e1375..674facc 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -1,25 +1,25 @@ document: modulemd version: 1 data: - summary: postgresql module - description: This postgresql has been generated - license: - module: [ MIT ] - dependencies: - buildrequires: - bootstrap: master - requires: - platform: master - platform-placeholder: master - references: - community: https://docs.pagure.org/modularity/ - documentation: https://github.com/modularity-modules/postgresql - tracker: https://github.com/modularity-modules/postgresql - components: - rpms: - postgresql: - rationale: Generated. - ref: master. - uuid: - rationale: Generated. - ref: master. + summary: postgresql module + description: This postgresql has been generated + license: + module: [ MIT ] + dependencies: + buildrequires: + bootstrap: master + requires: + platform: master + platform-placeholder: master + references: + community: https://docs.pagure.org/modularity/ + documentation: https://github.com/modularity-modules/postgresql + tracker: https://github.com/modularity-modules/postgresql + components: + rpms: + postgresql: + rationale: Generated. + ref: master. + uuid: + rationale: Generated. + ref: master. From e090c6f0fe81f337460a81e1350b4083fcecbbb5 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Fri, 25 Aug 2017 10:41:03 +0200 Subject: [PATCH 10/80] re-add api, profiles --- postgresql.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/postgresql.yaml b/postgresql.yaml index 674facc..4f3a479 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -15,6 +15,17 @@ data: community: https://docs.pagure.org/modularity/ documentation: https://github.com/modularity-modules/postgresql tracker: https://github.com/modularity-modules/postgresql + api: + rpms: + - postgresql + profiles: + default: + rpms: + - postgresql-server + client: + rpms: + - postgresql + filter: {} components: rpms: postgresql: From 83452c25e6c4dfaeccbbc02d7dca1713bdb95272 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Fri, 25 Aug 2017 10:46:24 +0200 Subject: [PATCH 11/80] reindent again (grrr, tabs) --- postgresql.yaml | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index 4f3a479..23dea4d 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -1,20 +1,20 @@ document: modulemd version: 1 data: - summary: postgresql module - description: This postgresql has been generated - license: - module: [ MIT ] - dependencies: - buildrequires: - bootstrap: master - requires: - platform: master - platform-placeholder: master - references: - community: https://docs.pagure.org/modularity/ - documentation: https://github.com/modularity-modules/postgresql - tracker: https://github.com/modularity-modules/postgresql + summary: postgresql module + description: This postgresql has been generated + license: + module: [ MIT ] + dependencies: + buildrequires: + bootstrap: master + requires: + platform: master + platform-placeholder: master + references: + community: https://docs.pagure.org/modularity/ + documentation: https://github.com/modularity-modules/postgresql + tracker: https://github.com/modularity-modules/postgresql api: rpms: - postgresql @@ -28,9 +28,9 @@ data: filter: {} components: rpms: - postgresql: - rationale: Generated. - ref: master. - uuid: - rationale: Generated. - ref: master. + postgresql: + rationale: Generated. + ref: master. + uuid: + rationale: Generated. + ref: master. From a61016ef1a60e8108169be42ce07e614bb7b974d Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Fri, 25 Aug 2017 10:53:50 +0200 Subject: [PATCH 12/80] make the description a proper sentence --- postgresql.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql.yaml b/postgresql.yaml index 23dea4d..6f7e490 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -2,7 +2,7 @@ document: modulemd version: 1 data: summary: postgresql module - description: This postgresql has been generated + description: This postgresql module has been generated. license: module: [ MIT ] dependencies: From e26462750c73da621183a1e345a237063ef150ee Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Fri, 25 Aug 2017 10:54:54 +0200 Subject: [PATCH 13/80] pull component packages from f27 --- postgresql.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index 6f7e490..df1dc5d 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -30,7 +30,7 @@ data: rpms: postgresql: rationale: Generated. - ref: master. + ref: f27 uuid: rationale: Generated. - ref: master. + ref: f27 From 74b97eac49c324896948d188cf7790f2aa2da82a Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Fri, 25 Aug 2017 12:47:05 +0200 Subject: [PATCH 14/80] remove bogus platform-placeholder dependency --- postgresql.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/postgresql.yaml b/postgresql.yaml index df1dc5d..48a8832 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -10,7 +10,6 @@ data: bootstrap: master requires: platform: master - platform-placeholder: master references: community: https://docs.pagure.org/modularity/ documentation: https://github.com/modularity-modules/postgresql From 71e7d7e4174d189a351299a87291b2e79f4e1cfc Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Mon, 9 Oct 2017 16:07:25 +0200 Subject: [PATCH 15/80] provide server profile as requested by sct --- postgresql.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/postgresql.yaml b/postgresql.yaml index 48a8832..29792f2 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -21,6 +21,9 @@ data: default: rpms: - postgresql-server + server: + rpms: + - postgresql-server client: rpms: - postgresql From fce1b50a7ad4a741d65b5989abbd9c3fd1cf64d6 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Thu, 12 Oct 2017 11:16:44 +0200 Subject: [PATCH 16/80] bump and rebuild From de62aeaeb5bd4902f53a2aa8d13d0342a63687ba Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Thu, 12 Oct 2017 11:50:28 +0200 Subject: [PATCH 17/80] bump From 5d9488e1439f5e5b4f272961ceed4b4965f8bde2 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Thu, 12 Oct 2017 11:55:55 +0200 Subject: [PATCH 18/80] use older hast for mbs/pdc sync tests --- postgresql.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql.yaml b/postgresql.yaml index 29792f2..653cd24 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -32,7 +32,7 @@ data: rpms: postgresql: rationale: Generated. - ref: f27 + ref: 1fa73e0a7b04e79c7ba7c4fddeee422d27634884 uuid: rationale: Generated. ref: f27 From 8adcc7910fd09c315dde251242010be57d59c395 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Thu, 12 Oct 2017 12:00:54 +0200 Subject: [PATCH 19/80] use an even older hash for mbs/pdc sync tests --- postgresql.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql.yaml b/postgresql.yaml index 653cd24..c4516dd 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -32,7 +32,7 @@ data: rpms: postgresql: rationale: Generated. - ref: 1fa73e0a7b04e79c7ba7c4fddeee422d27634884 + ref: 61feab0edf0880151e44d388400caea6522067cf uuid: rationale: Generated. ref: f27 From e733195a45298ed48abc58a805e4be97390030e3 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Thu, 12 Oct 2017 13:13:27 +0200 Subject: [PATCH 20/80] Revert "use an even older hash for mbs/pdc sync tests" This reverts commit 8adcc7910fd09c315dde251242010be57d59c395. --- postgresql.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql.yaml b/postgresql.yaml index c4516dd..653cd24 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -32,7 +32,7 @@ data: rpms: postgresql: rationale: Generated. - ref: 61feab0edf0880151e44d388400caea6522067cf + ref: 1fa73e0a7b04e79c7ba7c4fddeee422d27634884 uuid: rationale: Generated. ref: f27 From 7541816442f847c2f69c19cb40416aa31d62208d Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Thu, 12 Oct 2017 13:14:15 +0200 Subject: [PATCH 21/80] Revert "use older hast for mbs/pdc sync tests" This reverts commit 5d9488e1439f5e5b4f272961ceed4b4965f8bde2. --- postgresql.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql.yaml b/postgresql.yaml index 653cd24..29792f2 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -32,7 +32,7 @@ data: rpms: postgresql: rationale: Generated. - ref: 1fa73e0a7b04e79c7ba7c4fddeee422d27634884 + ref: f27 uuid: rationale: Generated. ref: f27 From b8b9571938ed41b303d600f2eb7df9f5219faf06 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Wed, 18 Oct 2017 10:35:30 +0200 Subject: [PATCH 22/80] switch to f27 stream requirements --- postgresql.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index 29792f2..0dfdb12 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -7,9 +7,9 @@ data: module: [ MIT ] dependencies: buildrequires: - bootstrap: master + bootstrap: f27 requires: - platform: master + platform: f27 references: community: https://docs.pagure.org/modularity/ documentation: https://github.com/modularity-modules/postgresql From 0afe31547e9e4c15269286d79038d8bcfee4a460 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Fri, 20 Oct 2017 12:44:21 +0200 Subject: [PATCH 23/80] update master hashes --- postgresql.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index 0dfdb12..fa4ff16 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -7,9 +7,9 @@ data: module: [ MIT ] dependencies: buildrequires: - bootstrap: f27 + bootstrap: master requires: - platform: f27 + platform: master references: community: https://docs.pagure.org/modularity/ documentation: https://github.com/modularity-modules/postgresql @@ -30,9 +30,12 @@ data: filter: {} components: rpms: + # postgresql-10.0-3.fc28 postgresql: rationale: Generated. - ref: f27 + ref: 07894e0da4b994092abd0084fba982e075ccf3f3 + # uuid-1.6.2-39.fc27 uuid: rationale: Generated. - ref: f27 + ref: 43c916caff937bdf8a97ded1abff3e01df4895f4 + From 550329433512156a732cc25bb3ca492a553d0de3 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 11 Dec 2018 13:36:30 +0100 Subject: [PATCH 24/80] Merge from '9.6' branch --- postgresql.yaml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 postgresql.yaml diff --git a/postgresql.yaml b/postgresql.yaml new file mode 100644 index 0000000..824e63f --- /dev/null +++ b/postgresql.yaml @@ -0,0 +1,44 @@ +--- +document: modulemd +version: 2 +data: + summary: PostgreSQL module + description: PostgreSQL is an advanced Object-Relational database + management system (DBMS). + The PostgreSQL server can be found in the + postgresql-server sub-package. + license: + module: [MIT] + dependencies: + - buildrequires: + platform: [] + requires: + platform: [] + references: + community: https://docs.pagure.org/modularity/ + documentation: https://www.postgresql.org/docs/ + tracker: https://github.com/modularity-modules/postgresql + api: + rpms: + - postgresql + - postgresql-server + profiles: + default: + rpms: + - postgresql-server + server: + rpms: + - postgresql-server + client: + rpms: + - postgresql + filter: {} + buildopts: + rpms: + macros: | + %runselftest 0 + components: + rpms: + postgresql: + rationale: main server component + ref: 3f21ecc4 # latest f27 From 22b1233cfa39ec932092dcdcdeef5596bec2ca8c Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 11 Dec 2018 13:53:04 +0100 Subject: [PATCH 25/80] Fixes for PG 10 --- postgresql.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index 824e63f..13fad5f 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -33,12 +33,8 @@ data: rpms: - postgresql filter: {} - buildopts: - rpms: - macros: | - %runselftest 0 components: rpms: postgresql: - rationale: main server component - ref: 3f21ecc4 # latest f27 + rationale: main server/client components + ref: stream-postgresql-10 From 9c361aefb01937abc50fa25c9a75b12cc7bfd32b Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 12 Dec 2018 12:41:26 +0100 Subject: [PATCH 26/80] Switch to stream-postgresql-11 rpms branch --- postgresql.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql.yaml b/postgresql.yaml index 13fad5f..c251029 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -37,4 +37,4 @@ data: rpms: postgresql: rationale: main server/client components - ref: stream-postgresql-10 + ref: stream-postgresql-11 From ca809f391ad29f56d0ff67ec00d52b50b05b84f5 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 17 Jan 2019 15:57:49 +0100 Subject: [PATCH 27/80] drop default profile, add timescaledb component --- postgresql.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index c251029..7fa1ced 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -23,9 +23,6 @@ data: - postgresql - postgresql-server profiles: - default: - rpms: - - postgresql-server server: rpms: - postgresql-server @@ -38,3 +35,6 @@ data: postgresql: rationale: main server/client components ref: stream-postgresql-11 + timescaledb: + rationale: timescaledb server module + ref: stream-postgresql-11 From 79c8e873252d2cefcecd6a6b2b848b8eca4d2d58 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 17 Jan 2019 19:45:11 +0100 Subject: [PATCH 28/80] use buildorder --- postgresql.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/postgresql.yaml b/postgresql.yaml index 7fa1ced..73a73d6 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -35,6 +35,8 @@ data: postgresql: rationale: main server/client components ref: stream-postgresql-11 + buildorder: 0 timescaledb: rationale: timescaledb server module ref: stream-postgresql-11 + buildorder: 1 From b48b23a30cfda8ea4f1ea6fbcee8e51df9807134 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 17 Jan 2019 19:52:20 +0100 Subject: [PATCH 29/80] rebuild all From da4ffa971493c2d5c7732bb25fb0cc14992f1cc7 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 17 Jan 2019 22:25:35 +0100 Subject: [PATCH 30/80] rebuild again (forgotten push to rpms/postgresql) From a81570e0569c17834c2e4d3d3ccd397b83b78b77 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 18 Jan 2019 15:38:01 +0100 Subject: [PATCH 31/80] add pg-semver rpm --- postgresql.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/postgresql.yaml b/postgresql.yaml index 73a73d6..1ae89e8 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -40,3 +40,7 @@ data: rationale: timescaledb server module ref: stream-postgresql-11 buildorder: 1 + pg-semver: + rationale: server module providing semantic version data type + ref: stream-postgresql-11 + buildorder: 1 From ddd1031ae8c0810afdcd71cacc6976b111254780 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 18 Jan 2019 15:54:52 +0100 Subject: [PATCH 32/80] add postgresql-ip4r rpm --- postgresql.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/postgresql.yaml b/postgresql.yaml index 1ae89e8..60eca14 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -44,3 +44,7 @@ data: rationale: server module providing semantic version data type ref: stream-postgresql-11 buildorder: 1 + postgresql-ip4r: + rationale: server module providing IPv4/IPv6 address/range data type + ref: stream-postgresql-11 + buildorder: 1 From 7a44fcb241e463e52aba0ed3bd6caeb91b619a16 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 23 Jan 2019 17:30:01 +0100 Subject: [PATCH 33/80] add postgresql-pgpool-II --- postgresql.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/postgresql.yaml b/postgresql.yaml index 60eca14..2afccd7 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -48,3 +48,7 @@ data: rationale: server module providing IPv4/IPv6 address/range data type ref: stream-postgresql-11 buildorder: 1 + postgresql-pgpool-II: + rationale: connection pooling/replication server for PostgreSQL + ref: stream-postgresql-11 + buildorder: 1 From 9a9706c8778cc9ca046a763a19259a3148397a53 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 18 Feb 2019 22:59:22 +0000 Subject: [PATCH 34/80] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering From 6b21417a90374dcc7f3101c1c04d6d5409dcd739 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 21 Feb 2019 13:39:57 +0100 Subject: [PATCH 35/80] updated pgpool-II From 2cd95a558083b24e15deefbac957b95e2280c48a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 1 Mar 2019 19:20:43 +0000 Subject: [PATCH 36/80] Branching f30 from rawhide Signed-off-by: Fedora Release Engineering From 11afe20c675bdd07277d64cdf52a9eeababa16b8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 4 Mar 2019 18:12:12 +0000 Subject: [PATCH 37/80] Branching f30 from rawhide, second attempt after platform:f31 enablement Signed-off-by: Fedora Release Engineering From 43354dcbeb6571e22f392267e53ac2425903adf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Fri, 26 Jul 2019 13:59:38 +0200 Subject: [PATCH 38/80] Initial commit: PostgreSQL 12Beta2 --- postgresql.yaml | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index 2afccd7..be9246b 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -1,6 +1,6 @@ --- document: modulemd -version: 2 +version: 1 data: summary: PostgreSQL module description: PostgreSQL is an advanced Object-Relational database @@ -25,30 +25,23 @@ data: profiles: server: rpms: + - libpq - postgresql-server client: rpms: + - libpq - postgresql + libpq: + rpms: + - libpq filter: {} components: rpms: + libpq: + rationale: libpq library components + ref: stream-postgresql-12 + buildorder: 1 postgresql: rationale: main server/client components - ref: stream-postgresql-11 + ref: stream-postgresql-12 buildorder: 0 - timescaledb: - rationale: timescaledb server module - ref: stream-postgresql-11 - buildorder: 1 - pg-semver: - rationale: server module providing semantic version data type - ref: stream-postgresql-11 - buildorder: 1 - postgresql-ip4r: - rationale: server module providing IPv4/IPv6 address/range data type - ref: stream-postgresql-11 - buildorder: 1 - postgresql-pgpool-II: - rationale: connection pooling/replication server for PostgreSQL - ref: stream-postgresql-11 - buildorder: 1 From 0ec4b741bd8eb5daa5297eebcd318a06bb3fe064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Wed, 31 Jul 2019 14:34:09 +0200 Subject: [PATCH 39/80] FIx version typo --- postgresql.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql.yaml b/postgresql.yaml index be9246b..c7fa56a 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -1,6 +1,6 @@ --- document: modulemd -version: 1 +version: 2 data: summary: PostgreSQL module description: PostgreSQL is an advanced Object-Relational database From 95741826335d68f8e7dc86a3eeeec89a2e174a97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Wed, 31 Jul 2019 15:35:28 +0200 Subject: [PATCH 40/80] Fix build order --- postgresql.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index c7fa56a..d30a3fd 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -40,8 +40,8 @@ data: libpq: rationale: libpq library components ref: stream-postgresql-12 - buildorder: 1 + buildorder: 0 postgresql: rationale: main server/client components ref: stream-postgresql-12 - buildorder: 0 + buildorder: 1 From 8adbd6359d1dc4bc140a1e278276390c89ff4362 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 13 Aug 2019 20:02:38 +0000 Subject: [PATCH 41/80] Branching f31 from rawhide Signed-off-by: Fedora Release Engineering From 947341170f541cd53ff8684fa36f74cc335c8502 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 4 Sep 2019 19:20:26 +0000 Subject: [PATCH 42/80] Branching f31 from rawhide, second attempt after platform:f31 enablement Signed-off-by: Fedora Release Engineering From 30e9332cce86eff7e717e4bc9dd014c14f45961f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Thu, 12 Sep 2019 15:27:41 +0200 Subject: [PATCH 43/80] PostgreSQL beta release 12beta4 From 3d816e2830ca15e49dad70b74ce85677019d56c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Wed, 9 Oct 2019 17:15:44 +0200 Subject: [PATCH 44/80] Rebuild for PostgreSQL 12.0 From ec6a65d1015f26e206a7ea6cac7d4ea214cfaa42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Thu, 10 Oct 2019 16:06:27 +0200 Subject: [PATCH 45/80] Rebuild for PostgreSQL 12.0 From 4e25916cc688b9aa7e5713bfc4ba0268869dcf83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Thu, 10 Oct 2019 18:00:16 +0200 Subject: [PATCH 46/80] Rebuild for PostgreSQL 12.0 From 38459299e704e4b8dd195c5d08301232ed8e5db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Mon, 25 Nov 2019 14:39:33 +0100 Subject: [PATCH 47/80] Add pgaudit and timescaledb Also, rebased libpq and postgresql to 12.1. --- postgresql.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/postgresql.yaml b/postgresql.yaml index d30a3fd..523f7d3 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -45,3 +45,11 @@ data: rationale: main server/client components ref: stream-postgresql-12 buildorder: 1 + pgaudit: + rationale: pgaudit postgresql extension + ref: stream-postgresql-12 + buildorder: 2 + timescaledb: + rationale: timescaledb postgresql extension + ref: stream-postgresql-12 + buildorder: 2 From 16403a8930874b1324972725206647a1103632d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Mon, 9 Dec 2019 13:44:38 +0100 Subject: [PATCH 48/80] Disable timescaledb and postgres-decorderbufs TimescaleDB: - waiting for PR to be merged https://github.com/timescale/timescaledb/pull/1525 postgres-decoderbufs: - waiting for PR to be merged https://src.fedoraproject.org/rpms/postgres-decoderbufs/pull-request/1 --- postgresql.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index 523f7d3..469b508 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -49,7 +49,13 @@ data: rationale: pgaudit postgresql extension ref: stream-postgresql-12 buildorder: 2 - timescaledb: - rationale: timescaledb postgresql extension - ref: stream-postgresql-12 - buildorder: 2 + # # https://github.com/timescale/timescaledb/pull/1525 + # timescaledb: + # rationale: timescaledb postgresql extension + # ref: stream-postgresql-12 + # buildorder: 2 + # # https://src.fedoraproject.org/rpms/postgres-decoderbufs/pull-request/1 + # postgres-decoderbufs: + # rationale: postgres-decoderbufs postgresql extension + # ref: stream-postgresql-12 + # buildorder: 2 From 84bd729608f920eb2e4afc4cd97fb0f07823604d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Tue, 10 Dec 2019 14:49:22 +0100 Subject: [PATCH 49/80] Add postgres-decoderbufs stream --- postgresql.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index 469b508..838a987 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -55,7 +55,7 @@ data: # ref: stream-postgresql-12 # buildorder: 2 # # https://src.fedoraproject.org/rpms/postgres-decoderbufs/pull-request/1 - # postgres-decoderbufs: - # rationale: postgres-decoderbufs postgresql extension - # ref: stream-postgresql-12 - # buildorder: 2 + postgres-decoderbufs: + rationale: postgres-decoderbufs postgresql extension + ref: stream-postgresql-12 + buildorder: 2 From c842df7053295f7d2ecd2e2d6b5ed3968e1da2fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Wed, 11 Dec 2019 11:01:04 +0100 Subject: [PATCH 50/80] Rebuild with JIT enabled From e979827b496dc3d3b4125b5e9e9ae2f3a39b98fa Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 6 Feb 2020 18:28:47 +0000 Subject: [PATCH 51/80] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering From 17667a0a3e46346f63c2c6ce4333dafff81a6ea6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 14 Feb 2020 12:34:04 +0000 Subject: [PATCH 52/80] Branching f32 from rawhide Signed-off-by: Fedora Release Engineering From f9d43e031622eaa3882b0c71feeeaa381a861476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Mon, 17 Feb 2020 12:33:52 +0100 Subject: [PATCH 53/80] Remove libpq from module --- postgresql.yaml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index 838a987..5e89fa6 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -25,30 +25,21 @@ data: profiles: server: rpms: - - libpq - postgresql-server client: rpms: - - libpq - postgresql - libpq: - rpms: - - libpq filter: {} components: rpms: - libpq: - rationale: libpq library components - ref: stream-postgresql-12 - buildorder: 0 postgresql: rationale: main server/client components ref: stream-postgresql-12 - buildorder: 1 + buildorder: 0 pgaudit: rationale: pgaudit postgresql extension ref: stream-postgresql-12 - buildorder: 2 + buildorder: 1 # # https://github.com/timescale/timescaledb/pull/1525 # timescaledb: # rationale: timescaledb postgresql extension @@ -58,4 +49,4 @@ data: postgres-decoderbufs: rationale: postgres-decoderbufs postgresql extension ref: stream-postgresql-12 - buildorder: 2 + buildorder: 1 From 3244286ebef538a39a45566a96327881202ead37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Mon, 17 Feb 2020 12:34:44 +0100 Subject: [PATCH 54/80] Add link to the github issue for TimescaleDB PG12 Link in the comments https://github.com/timescale/timescaledb/issues/1456 --- postgresql.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql.yaml b/postgresql.yaml index 5e89fa6..dcfff11 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -40,7 +40,7 @@ data: rationale: pgaudit postgresql extension ref: stream-postgresql-12 buildorder: 1 - # # https://github.com/timescale/timescaledb/pull/1525 + # # https://github.com/timescale/timescaledb/issues/1456 # timescaledb: # rationale: timescaledb postgresql extension # ref: stream-postgresql-12 From 1b7a0f77aba0345435bf1c0eac0961c44b61193f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Mon, 17 Feb 2020 12:47:06 +0100 Subject: [PATCH 55/80] Rebuild for 12.2 PostgreSQL 12.2 pgaudit: Buildrequire clang postgres-decoderbufs: Buildrequire clang From 5066ff1a03f3c1448de4ea4c1a265756d6866dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Mon, 17 Feb 2020 13:32:54 +0100 Subject: [PATCH 56/80] Rebuild for upstream version 12.2 From ffb779b2474fa3f8929cc6f761e4539c5092201a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Mon, 17 Feb 2020 16:39:49 +0100 Subject: [PATCH 57/80] Rebuild after missing BuildRequires added From a499f9233dad9f8e18fac0af959015f0d7aa5c20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Mon, 17 Feb 2020 19:25:09 +0100 Subject: [PATCH 58/80] Build only for f30 and f31 arch --- postgresql.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index dcfff11..a6ecb5e 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -11,9 +11,9 @@ data: module: [MIT] dependencies: - buildrequires: - platform: [] + platform: [f30, f31] requires: - platform: [] + platform: [f30, f31] references: community: https://docs.pagure.org/modularity/ documentation: https://www.postgresql.org/docs/ From 0226e649e5e3abc211ff6af140261675955d5885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Tue, 26 May 2020 12:07:23 +0200 Subject: [PATCH 59/80] Rebuild for version 12.3 From 7ef0231d0b0a061edb7ddf38b51ff4f701baf9a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Tue, 26 May 2020 13:47:49 +0200 Subject: [PATCH 60/80] Rebuild for rebased postgresql-man.patch From 6f99a12a2c51778b58ef16c16c8e07bbd887f12e Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Fri, 4 Sep 2020 15:33:07 +0200 Subject: [PATCH 61/80] Commit to make mbs rebuild From 307a36b009279b157295f1cd33a23017ff62ffe9 Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Wed, 13 Jan 2021 09:54:56 +0100 Subject: [PATCH 62/80] Update refs for v13 --- postgresql.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index a6ecb5e..5ee418f 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -11,9 +11,9 @@ data: module: [MIT] dependencies: - buildrequires: - platform: [f30, f31] + platform: [f32, f33] requires: - platform: [f30, f31] + platform: [f32, f33] references: community: https://docs.pagure.org/modularity/ documentation: https://www.postgresql.org/docs/ @@ -34,11 +34,11 @@ data: rpms: postgresql: rationale: main server/client components - ref: stream-postgresql-12 + ref: stream-postgresql-13 buildorder: 0 pgaudit: rationale: pgaudit postgresql extension - ref: stream-postgresql-12 + ref: stream-postgresql-13 buildorder: 1 # # https://github.com/timescale/timescaledb/issues/1456 # timescaledb: @@ -48,5 +48,5 @@ data: # # https://src.fedoraproject.org/rpms/postgres-decoderbufs/pull-request/1 postgres-decoderbufs: rationale: postgres-decoderbufs postgresql extension - ref: stream-postgresql-12 + ref: stream-postgresql-13 buildorder: 1 From f7b6964f724004ac49d34f72c99342c0548599df Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Fri, 29 Jan 2021 13:44:07 +0100 Subject: [PATCH 63/80] Do not limit the platforms at all --- postgresql.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index 5ee418f..639af41 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -11,9 +11,9 @@ data: module: [MIT] dependencies: - buildrequires: - platform: [f32, f33] + platform: [] requires: - platform: [f32, f33] + platform: [] references: community: https://docs.pagure.org/modularity/ documentation: https://www.postgresql.org/docs/ From 8a6bf92384a508e4357b42d92e4028eb693d690c Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Mon, 1 Feb 2021 19:31:43 +0100 Subject: [PATCH 64/80] Temporarily disable plugins for the first build --- postgresql.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index 639af41..a3e3c58 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -36,17 +36,17 @@ data: rationale: main server/client components ref: stream-postgresql-13 buildorder: 0 - pgaudit: - rationale: pgaudit postgresql extension - ref: stream-postgresql-13 - buildorder: 1 + # pgaudit: + # rationale: pgaudit postgresql extension + # ref: stream-postgresql-13 + # buildorder: 1 # # https://github.com/timescale/timescaledb/issues/1456 # timescaledb: # rationale: timescaledb postgresql extension # ref: stream-postgresql-12 # buildorder: 2 # # https://src.fedoraproject.org/rpms/postgres-decoderbufs/pull-request/1 - postgres-decoderbufs: - rationale: postgres-decoderbufs postgresql extension - ref: stream-postgresql-13 - buildorder: 1 + # postgres-decoderbufs: + # rationale: postgres-decoderbufs postgresql extension + # ref: stream-postgresql-13 + # buildorder: 1 From 15f1f51ac95c9164084aafb97459cd7199a0f28e Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Thu, 18 Feb 2021 16:59:34 +0100 Subject: [PATCH 65/80] Rebuild of the module From 08294d8c54c13c5d0fd0a85b55ec707e5114b780 Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Thu, 18 Feb 2021 18:22:43 +0100 Subject: [PATCH 66/80] Build the plugins again --- postgresql.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index a3e3c58..8d21019 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -36,17 +36,17 @@ data: rationale: main server/client components ref: stream-postgresql-13 buildorder: 0 - # pgaudit: - # rationale: pgaudit postgresql extension - # ref: stream-postgresql-13 - # buildorder: 1 - # # https://github.com/timescale/timescaledb/issues/1456 + pgaudit: + rationale: pgaudit postgresql extension + ref: stream-postgresql-13 + buildorder: 1 + # https://github.com/timescale/timescaledb/issues/1456 # timescaledb: # rationale: timescaledb postgresql extension # ref: stream-postgresql-12 # buildorder: 2 # # https://src.fedoraproject.org/rpms/postgres-decoderbufs/pull-request/1 - # postgres-decoderbufs: - # rationale: postgres-decoderbufs postgresql extension - # ref: stream-postgresql-13 - # buildorder: 1 + postgres-decoderbufs: + rationale: postgres-decoderbufs postgresql extension + ref: stream-postgresql-13 + buildorder: 1 From 8cddfd5d8d1388e04a9ff437b5fe35baeee986cd Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Thu, 18 Feb 2021 18:23:53 +0100 Subject: [PATCH 67/80] Fix syntax --- postgresql.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index 8d21019..d89863e 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -36,7 +36,7 @@ data: rationale: main server/client components ref: stream-postgresql-13 buildorder: 0 - pgaudit: + pgaudit: rationale: pgaudit postgresql extension ref: stream-postgresql-13 buildorder: 1 @@ -46,7 +46,7 @@ data: # ref: stream-postgresql-12 # buildorder: 2 # # https://src.fedoraproject.org/rpms/postgres-decoderbufs/pull-request/1 - postgres-decoderbufs: + postgres-decoderbufs: rationale: postgres-decoderbufs postgresql extension ref: stream-postgresql-13 buildorder: 1 From 5ac95e7abdefe59b1e0b670dadf297c2fc46696f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Janu=C5=A1?= Date: Mon, 17 May 2021 15:45:41 +0200 Subject: [PATCH 68/80] Module rebuild v13.3 From 3de7db368f7e7f310da04004e0f7a9a9cc193385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Janu=C5=A1?= Date: Wed, 19 May 2021 11:37:27 +0200 Subject: [PATCH 69/80] Rebuild - Work-around fix jit failure on s390x From afab4e2c8dbe70e251eefdde6220f2836f7d90aa Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Fri, 25 Jun 2021 20:40:23 +0200 Subject: [PATCH 70/80] Update to 14 --- postgresql.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index d89863e..33d584a 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -34,19 +34,19 @@ data: rpms: postgresql: rationale: main server/client components - ref: stream-postgresql-13 + ref: stream-postgresql-14 buildorder: 0 - pgaudit: - rationale: pgaudit postgresql extension - ref: stream-postgresql-13 - buildorder: 1 + # pgaudit: + # rationale: pgaudit postgresql extension + # ref: stream-postgresql-14 + # buildorder: 1 # https://github.com/timescale/timescaledb/issues/1456 # timescaledb: # rationale: timescaledb postgresql extension - # ref: stream-postgresql-12 + # ref: stream-postgresql-14 # buildorder: 2 # # https://src.fedoraproject.org/rpms/postgres-decoderbufs/pull-request/1 - postgres-decoderbufs: - rationale: postgres-decoderbufs postgresql extension - ref: stream-postgresql-13 - buildorder: 1 + # postgres-decoderbufs: + # rationale: postgres-decoderbufs postgresql extension + # ref: stream-postgresql-14 + # buildorder: 1 From 860bf4e9aa84f2c1fb3b4a3dc2e65367e8ce2743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Janu=C5=A1?= Date: Fri, 1 Oct 2021 16:44:40 +0200 Subject: [PATCH 71/80] PG14 was released - build From 0283c8a6e6245d87e12c9e518953dc1aa7d1f1f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Janu=C5=A1?= Date: Wed, 13 Oct 2021 13:28:05 +0200 Subject: [PATCH 72/80] Rebuild From 138b0249a7899cd556aa35e2c65a282d8c071ace Mon Sep 17 00:00:00 2001 From: Marek Kulik Date: Tue, 11 Jan 2022 12:21:40 +0100 Subject: [PATCH 73/80] Rebuild for version 14.1 From 54adfd82141473415a399caa88abb4900d17df33 Mon Sep 17 00:00:00 2001 From: Filip Janus Date: Tue, 22 Feb 2022 10:51:51 +0100 Subject: [PATCH 74/80] Rebuild 14.2 From 4d7c4246ab3b34dbfaee98b8db0f67feb5cb0022 Mon Sep 17 00:00:00 2001 From: Filip Janus Date: Wed, 29 Jun 2022 12:45:53 +0200 Subject: [PATCH 75/80] Rebuild based on https://bugzilla.redhat.com/show_bug.cgi?id=2100813 From cefe9e255c9534f46d3656986a0b16c5d6d98a8b Mon Sep 17 00:00:00 2001 From: Filip Janus Date: Wed, 3 Aug 2022 14:23:54 +0200 Subject: [PATCH 76/80] Rebuild - fix perl compatibility From b1fc310fddc38da25dbd970fc7152820c51d7127 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 10 Aug 2022 16:53:08 +0000 Subject: [PATCH 77/80] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering From 48fef2d8e8d226de62805e9f84ca4c895854f41a Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Fri, 10 Feb 2023 14:28:37 +0100 Subject: [PATCH 78/80] Rebuild for the new upstream version From 617e8d4f7017b6cfabe5acd83084938de367ee59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Wed, 22 Feb 2023 09:35:41 +0100 Subject: [PATCH 79/80] Rebuild with corrected postgresql sources bug #2170745 From a9d24c1c6d48188b32395a194ada6386c9027d22 Mon Sep 17 00:00:00 2001 From: Filip Janus Date: Thu, 3 Aug 2023 10:35:51 +0200 Subject: [PATCH 80/80] Rebuild with pgaudit --- postgresql.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/postgresql.yaml b/postgresql.yaml index 33d584a..7efd933 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -36,10 +36,10 @@ data: rationale: main server/client components ref: stream-postgresql-14 buildorder: 0 - # pgaudit: - # rationale: pgaudit postgresql extension - # ref: stream-postgresql-14 - # buildorder: 1 + pgaudit: + rationale: pgaudit postgresql extension + ref: rawhide + buildorder: 1 # https://github.com/timescale/timescaledb/issues/1456 # timescaledb: # rationale: timescaledb postgresql extension