---- a/src/Makefile.global.in
-+++ b/src/Makefile.global.in
-@@ -120,7 +120,7 @@ libdir := @libdir@
- pkglibdir = $(libdir)
- ifeq "$(findstring pgsql, $(pkglibdir))" ""
- ifeq "$(findstring postgres, $(pkglibdir))" ""
--override pkglibdir := $(pkglibdir)/postgresql
-+override pkglibdir := $(pkglibdir)/postgresql/@PG_MAJORVERSION@/lib
- endif
- endif
-
-@@ -168,7 +168,7 @@ endif # PGXS
-
- # These derived path variables aren't separately configurable.
-
--includedir_server = $(pkgincludedir)/server
-+includedir_server = $(pkgincludedir)/@PG_MAJORVERSION@/server
- includedir_internal = $(pkgincludedir)/internal
- pgxsdir = $(pkglibdir)/pgxs
-
---- a/src/bin/pg_config/pg_config.c
-+++ b/src/bin/pg_config/pg_config.c
+diff -ur postgresql-14.0.orig/src/bin/pg_config/pg_config.c postgresql-14.0/src/bin/pg_config/pg_config.c
+--- postgresql-14.0.orig/src/bin/pg_config/pg_config.c 2021-11-01 14:48:22.654149731 +0100
++++ postgresql-14.0/src/bin/pg_config/pg_config.c 2021-11-01 14:49:14.747282545 +0100
@@ -27,6 +27,8 @@
- #include "port.h"
#include "common/config_info.h"
+ #include "port.h"
+#include "../port/pg_config_paths.h"
+
static const char *progname;
/*
-@@ -148,11 +150,7 @@ main(int argc, char **argv)
+@@ -149,11 +151,7 @@
}
}
configdata = get_configdata(my_exec_path, &configdata_len);
/* no arguments -> print everything */
+diff -ur postgresql-14.0.orig/src/Makefile.global.in postgresql-14.0/src/Makefile.global.in
+--- postgresql-14.0.orig/src/Makefile.global.in 2021-11-01 14:48:22.456149226 +0100
++++ postgresql-14.0/src/Makefile.global.in 2021-11-01 14:49:14.747282545 +0100
+@@ -119,7 +119,7 @@
+ pkglibdir = $(libdir)
+ ifeq "$(findstring pgsql, $(pkglibdir))" ""
+ ifeq "$(findstring postgres, $(pkglibdir))" ""
+-override pkglibdir := $(pkglibdir)/postgresql
++override pkglibdir := $(pkglibdir)/postgresql/@PG_MAJORVERSION@/lib
+ endif
+ endif
+
+@@ -167,7 +167,7 @@
+
+ # These derived path variables aren't separately configurable.
+
+-includedir_server = $(pkgincludedir)/server
++includedir_server = $(pkgincludedir)/@PG_MAJORVERSION@/server
+ includedir_internal = $(pkgincludedir)/internal
+ pgxsdir = $(pkglibdir)/pgxs
+ bitcodedir = $(pkglibdir)/bitcode
---- postgresql-13.1/src/backend/utils/misc/postgresql.conf.sample 2020-11-09 23:24:30.000000000 +0100
-+++ postgresql-13.1/src/backend/utils/misc/postgresql.conf.sample 2020-12-03 20:55:41.832778786 +0100
-@@ -422,23 +422,23 @@
+--- postgresql-14.0/src/backend/utils/misc/postgresql.conf.sample 2021-11-01 12:40:10.778965880 +0100
++++ postgresql-14.0/src/backend/utils/misc/postgresql.conf.sample 2021-11-01 14:01:02.459020587 +0100
+@@ -430,27 +430,27 @@
# - Where to Log -
+log_directory = '/var/log/postgresql' # 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,
-+log_filename = 'postgresql-13.log' # log file name pattern,
++log_filename = 'postgresql-14.log' # log file name pattern,
# can include strftime() escapes
-#log_file_mode = 0600 # creation mode for log files,
+log_file_mode = 0640 # 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
-@@ -448,16 +448,16 @@
- # or size-driven rotation. Default is
- # off, meaning append to existing files
- # in all cases.
-#log_rotation_age = 1d # Automatic rotation of logfiles will
+log_rotation_age = 0 # Automatic rotation of logfiles will
# happen after that time. 0 disables.
+log_rotation_size = 0 # Automatic rotation of logfiles will
# happen after that much log output.
# 0 disables.
+ #log_truncate_on_rotation = off # If on, an existing log file with the
+@@ -463,9 +463,9 @@
+ # in all cases.
# These are relevant when logging to syslog:
-#syslog_facility = 'LOCAL0'
-#syslog_ident = 'postgres'
-#syslog_sequence_numbers = on
+syslog_facility = 'LOCAL0'
-+syslog_ident = 'postgresql-13'
++syslog_ident = 'postgresql-14'
+syslog_sequence_numbers = on
#syslog_split_messages = on
- # This is only relevant when logging to eventlog (win32):
-@@ -521,12 +521,12 @@
- #debug_print_plan = off
- #debug_pretty_print = on
+ # This is only relevant when logging to eventlog (Windows):
+@@ -534,12 +534,12 @@
+ # actions running at least this number
+ # of milliseconds.
#log_checkpoints = off
-#log_connections = off
-#log_disconnections = off
#
%define beta %{nil}
-%define pgsqlversion 13
-%define pgsqlpriority 130
+%define pgsqlversion 14
+%define pgsqlpriority 140
Summary: PostgreSQL Data Base Management System
Summary(de.UTF-8): PostgreSQL Datenbankverwaltungssystem
Summary(uk.UTF-8): PostgreSQL - система керування базами даних
Summary(zh_CN.UTF-8): PostgreSQL 客户端程序和库文件
Name: postgresql-%{pgsqlversion}
-Version: %{pgsqlversion}.4
+Version: %{pgsqlversion}.0
Release: 1
License: BSD
Group: Applications/Databases
Source0: http://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
-# Source0-md5: 7bda65a37c46b8b2c1933d9d1cd677f2
+# Source0-md5: 26e85a23c6a0ef68e9755555aea31141
Source1: postgresql.init
Source2: pgsql-Database-HOWTO-html.tar.gz
# Source2-md5: 5b656ddf1db41965761f85204a14398e
# omitted contribs:
# spi, test_decoding, worker_spi - examples/tests
# tsearch2 - old module for compatibility only
-%define contrib_modules adminpack auth_delay auto_explain bloom btree_gin btree_gist citext cube dblink dict_int dict_xsyn earthdistance file_fdw fuzzystrmatch hstore %{?with_perl:hstore_plperl} %{?with_python:hstore_plpython} intagg intarray isn lo ltree %{?with_python:ltree_plpython} oid2name pageinspect passwordcheck pg_buffercache pg_freespacemap pg_prewarm pg_standby pg_stat_statements pg_trgm pg_visibility pgcrypto pgrowlocks pgstattuple postgres_fdw seg %{?with_selinux:sepgsql} sslinfo tablefunc tcn tsm_system_rows tsm_system_time unaccent uuid-ossp vacuumlo xml2
+%define contrib_modules adminpack amcheck auth_delay auto_explain bloom %{?with_perl:bool_plperl} btree_gin btree_gist citext cube dblink dict_int dict_xsyn earthdistance file_fdw fuzzystrmatch hstore %{?with_perl:hstore_plperl} %{?with_python:hstore_plpython} intagg intarray isn %{?with_perl:jsonb_plperl} %{?with_python:jsonb_plpython} lo ltree %{?with_python:ltree_plpython} oid2name old_snapshot pageinspect passwordcheck pg_buffercache pg_freespacemap pg_prewarm pg_stat_statements pg_surgery pg_trgm pg_visibility pgcrypto pgrowlocks pgstattuple postgres_fdw seg %{?with_selinux:sepgsql} spi sslinfo tablefunc tcn tsm_system_rows tsm_system_time unaccent uuid-ossp vacuumlo xml2
%description
PostgreSQL Data Base Management System (formerly known as Postgres,
# find locales
for f in libpq5 pgscripts postgres psql initdb ecpg ecpglib6 \
plpgsql %{?with_perl:plperl} %{?with_python:plpython} \
- pg_archivecleanup pg_basebackup pg_checksums pg_config pg_controldata pg_ctl pg_dump pg_resetwal pg_rewind pg_test_fsync pg_test_timing pg_upgrade pg_verifybackup pg_waldump; do
+ pg_amcheck pg_archivecleanup pg_basebackup pg_checksums pg_config pg_controldata pg_ctl pg_dump pg_resetwal pg_rewind pg_test_fsync pg_test_timing pg_upgrade pg_verifybackup pg_waldump; do
%find_lang $f-%{pgsqlversion}
done
# merge locales
cat $(for f in $@; do echo ${f}-%{pgsqlversion}.lang ; done)
}
merge_lang pgscripts postgres plpgsql \
- pg_basebackup pg_checksums pg_config pg_controldata pg_resetwal pg_rewind pg_test_fsync pg_test_timing pg_upgrade pg_verifybackup pg_waldump > main.lang
+ pg_amcheck pg_basebackup pg_checksums pg_config pg_controldata pg_resetwal pg_rewind pg_test_fsync pg_test_timing pg_upgrade pg_verifybackup pg_waldump > main.lang
merge_lang psql initdb \
pg_archivecleanup pg_ctl pg_dump > clients.lang
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql-%{pgsqlversion}
%attr(755,root,root) %{pgsqllibdir}/bin/initdb
+%attr(755,root,root) %{pgsqllibdir}/bin/pg_amcheck
%attr(755,root,root) %{pgsqllibdir}/bin/pg_basebackup
%attr(755,root,root) %{pgsqllibdir}/bin/pg_checksums
%attr(755,root,root) %{pgsqllibdir}/bin/pg_controldata
%dir %{pgsqldatadir}/contrib
%{pgsqldatadir}/man/man1/initdb.1*
+%{pgsqldatadir}/man/man1/pg_amcheck.1*
%{pgsqldatadir}/man/man1/pg_basebackup.1*
%{pgsqldatadir}/man/man1/pg_checksums.1*
%{pgsqldatadir}/man/man1/pg_controldata.1*
%files contrib
%defattr(644,root,root,755)
%doc contrib/README
+%doc %{pgsqldatadir}/doc/extension/*.example
%attr(755,root,root) %{pgsqllibdir}/bin/oid2name
-%attr(755,root,root) %{pgsqllibdir}/bin/pg_standby
%attr(755,root,root) %{pgsqllibdir}/bin/vacuumlo
%attr(755,root,root) %{moduledir}/_int.so
%attr(755,root,root) %{moduledir}/adminpack.so
+%attr(755,root,root) %{moduledir}/amcheck.so
%attr(755,root,root) %{moduledir}/auth_delay.so
%attr(755,root,root) %{moduledir}/auto_explain.so
+%attr(755,root,root) %{moduledir}/autoinc.so
%attr(755,root,root) %{moduledir}/bloom.so
%attr(755,root,root) %{moduledir}/btree_gin.so
%attr(755,root,root) %{moduledir}/btree_gist.so
%attr(755,root,root) %{moduledir}/file_fdw.so
%attr(755,root,root) %{moduledir}/fuzzystrmatch.so
%attr(755,root,root) %{moduledir}/hstore.so
+%attr(755,root,root) %{moduledir}/insert_username.so
%attr(755,root,root) %{moduledir}/isn.so
%attr(755,root,root) %{moduledir}/ltree.so
+%attr(755,root,root) %{moduledir}/moddatetime.so
+%attr(755,root,root) %{moduledir}/old_snapshot.so
%attr(755,root,root) %{moduledir}/pageinspect.so
%attr(755,root,root) %{moduledir}/passwordcheck.so
%attr(755,root,root) %{moduledir}/pg_buffercache.so
%attr(755,root,root) %{moduledir}/pg_freespacemap.so
%attr(755,root,root) %{moduledir}/pg_prewarm.so
%attr(755,root,root) %{moduledir}/pg_stat_statements.so
+%attr(755,root,root) %{moduledir}/pg_surgery.so
%attr(755,root,root) %{moduledir}/pg_visibility.so
%attr(755,root,root) %{moduledir}/pgrowlocks.so
%attr(755,root,root) %{moduledir}/pgstattuple.so
%attr(755,root,root) %{moduledir}/postgres_fdw.so
+%attr(755,root,root) %{moduledir}/refint.so
%attr(755,root,root) %{moduledir}/seg.so
%attr(755,root,root) %{moduledir}/sslinfo.so
%attr(755,root,root) %{moduledir}/tcn.so
%attr(755,root,root) %{moduledir}/uuid-ossp.so
%{extensiondir}/adminpack--*.sql
%{extensiondir}/adminpack.control
+%{extensiondir}/amcheck--*.sql
+%{extensiondir}/amcheck.control
+%{extensiondir}/autoinc--*.sql
+%{extensiondir}/autoinc.control
%{extensiondir}/bloom--*.sql
%{extensiondir}/bloom.control
%{extensiondir}/btree_gin--*.sql
%{extensiondir}/fuzzystrmatch.control
%{extensiondir}/hstore--*.sql
%{extensiondir}/hstore.control
+%{extensiondir}/insert_username--*.sql
+%{extensiondir}/insert_username.control
%{extensiondir}/intarray--*.sql
%{extensiondir}/intarray.control
%{extensiondir}/intagg--*.sql
%{extensiondir}/isn.control
%{extensiondir}/ltree--*.sql
%{extensiondir}/ltree.control
+%{extensiondir}/moddatetime--*.sql
+%{extensiondir}/moddatetime.control
+%{extensiondir}/old_snapshot--*.sql
+%{extensiondir}/old_snapshot.control
%{extensiondir}/pageinspect--*.sql
%{extensiondir}/pageinspect.control
%{extensiondir}/pg_buffercache--*.sql
%{extensiondir}/pg_prewarm.control
%{extensiondir}/pg_stat_statements--*.sql
%{extensiondir}/pg_stat_statements.control
+%{extensiondir}/pg_surgery--*.sql
+%{extensiondir}/pg_surgery.control
%{extensiondir}/pg_visibility--*.sql
%{extensiondir}/pg_visibility.control
%{extensiondir}/pgrowlocks--*.sql
%{extensiondir}/pgstattuple.control
%{extensiondir}/postgres_fdw--*.sql
%{extensiondir}/postgres_fdw.control
+%{extensiondir}/refint--*.sql
+%{extensiondir}/refint.control
%{extensiondir}/seg--*.sql
%{extensiondir}/seg.control
%{extensiondir}/sslinfo--*.sql
%{extensiondir}/uuid-ossp--*.sql
%{extensiondir}/uuid-ossp.control
%if %{with perl}
+%attr(755,root,root) %{moduledir}/bool_plperl.so
%attr(755,root,root) %{moduledir}/hstore_plperl.so
+%attr(755,root,root) %{moduledir}/jsonb_plperl.so
+%{extensiondir}/bool_plperl--*.sql
+%{extensiondir}/bool_plperl.control
+%{extensiondir}/bool_plperlu--*.sql
+%{extensiondir}/bool_plperlu.control
%{extensiondir}/hstore_plperl--*.sql
%{extensiondir}/hstore_plperl.control
%{extensiondir}/hstore_plperlu--*.sql
%{extensiondir}/hstore_plperlu.control
+%{extensiondir}/jsonb_plperl--*.sql
+%{extensiondir}/jsonb_plperl.control
+%{extensiondir}/jsonb_plperlu--*.sql
+%{extensiondir}/jsonb_plperlu.control
%endif
%if %{with python}
%attr(755,root,root) %{moduledir}/hstore_plpython2.so
+%attr(755,root,root) %{moduledir}/jsonb_plpython2.so
%attr(755,root,root) %{moduledir}/ltree_plpython2.so
%{extensiondir}/hstore_plpythonu--*.sql
%{extensiondir}/hstore_plpythonu.control
%{extensiondir}/hstore_plpython2u.control
%{extensiondir}/hstore_plpython3u--*.sql
%{extensiondir}/hstore_plpython3u.control
+%{extensiondir}/jsonb_plpythonu--*.sql
+%{extensiondir}/jsonb_plpythonu.control
+%{extensiondir}/jsonb_plpython2u--*.sql
+%{extensiondir}/jsonb_plpython2u.control
+%{extensiondir}/jsonb_plpython3u--*.sql
+%{extensiondir}/jsonb_plpython3u.control
%{extensiondir}/ltree_plpythonu--*.sql
%{extensiondir}/ltree_plpythonu.control
%{extensiondir}/ltree_plpython2u--*.sql
%{extensiondir}/ltree_plpython3u.control
%endif
%{pgsqldatadir}/man/man1/oid2name.1*
-%{pgsqldatadir}/man/man1/pg_standby.1*
%{pgsqldatadir}/man/man1/vacuumlo.1*