[packages/postgresql] up to 19.0
arekm
arekm at pld-linux.org
Thu Nov 19 21:18:48 CET 2026
commit f956a7e6071fac8683a863934dfb3d3c0d4d8add
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 19 20:03:58 2026 +0100
up to 19.0
postgresql-conf.patch | 24 ++--
postgresql-gssapi-delegation-optional.patch | 94 +++++++-------
postgresql-link.patch | 31 +++--
postgresql.spec | 194 +++++++++++++++++++---------
4 files changed, 212 insertions(+), 131 deletions(-)
---
diff --git a/postgresql.spec b/postgresql.spec
index d4d9e48..e22f569 100644
--- a/postgresql.spec
+++ b/postgresql.spec
@@ -18,7 +18,7 @@
%bcond_without curl # curl support (OAuth)
%bcond_without io_uring # io_uring support
%bcond_without numa # NUMA support
-%bcond_with systemtap # systemtap/dtrace probes
+%bcond_without systemtap # systemtap/dtrace probes
#
# LLVM cannot select i32-pointer calls for the x32 ABI, so every JIT-ed
@@ -27,7 +27,7 @@
%undefine with_llvm
%endif
-%define mver 18
+%define mver 19
Summary: PostgreSQL Data Base Management System
Summary(de.UTF-8): PostgreSQL Datenbankverwaltungssystem
@@ -40,12 +40,12 @@ Summary(tr.UTF-8): Veri Tabanı Yönetim Sistemi
Summary(uk.UTF-8): PostgreSQL - система керування базами даних
Summary(zh_CN.UTF-8): PostgreSQL 客户端程序和库文件
Name: postgresql
-Version: %{mver}.7
+Version: %{mver}.0
Release: 1
License: BSD
Group: Applications/Databases
Source0: https://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
-# Source0-md5: 641e4167c939f31af0049edcff4239d6
+# Source0-md5: 4482bf4050210dcf2a3700e7323ceef4
Source1: %{name}.init
Source2: pgsql-Database-HOWTO-html.tar.gz
# Source2-md5: 5b656ddf1db41965761f85204a14398e
@@ -63,9 +63,9 @@ URL: https://www.postgresql.org/
BuildRequires: autoconf >= 2.69
BuildRequires: automake
%{?with_bonjour:BuildRequires: avahi-compat-libdns_sd-devel}
-# not needed for releases... but fixes something in snapshot
-BuildRequires: bison >= 1.875
-%{?with_llvm:BuildRequires: clang >= 3.9}
+# %prep touches *.y/*.l, so the parsers are always regenerated
+BuildRequires: bison >= 2.3
+%{?with_llvm:BuildRequires: clang >= 14}
%{?with_curl:BuildRequires: curl-devel >= 7.61.0}
BuildRequires: docbook-dtd45-xml
BuildRequires: docbook-style-xsl
@@ -82,7 +82,8 @@ BuildRequires: libuuid-devel
BuildRequires: libxml2-devel >= 1:2.6.23
BuildRequires: libxslt-devel
BuildRequires: libxslt-progs
-%{?with_llvm:BuildRequires: llvm-devel >= 3.9}
+%{?with_llvm:BuildRequires: llvm-devel >= 14}
+BuildRequires: lz4-devel
BuildRequires: ncurses-devel >= 5.0
%{?with_numa:BuildRequires: numactl-devel}
%{?with_ldap:BuildRequires: openldap-devel}
@@ -93,9 +94,9 @@ BuildRequires: perl-Scalar-List-Utils
BuildRequires: perl-devel
%endif
%if %{with python}
-BuildRequires: python3 >= 1:3.2
-BuildRequires: python3-devel >= 1:3.2
-BuildRequires: python3-modules >= 1:3.2
+BuildRequires: python3 >= 1:3.6.8
+BuildRequires: python3-devel >= 1:3.6.8
+BuildRequires: python3-modules >= 1:3.6.8
%endif
BuildRequires: readline-devel >= 4.2
BuildRequires: rpm-build >= 4.6
@@ -105,6 +106,7 @@ BuildRequires: rpmbuild(macros) >= 1.671
%{?with_tcl:BuildRequires: tcl-devel >= 8.4.3}
%{?with_tests:BuildRequires: tzdata}
BuildRequires: zlib-devel
+BuildRequires: zstd-devel >= 1.4.0
Requires(post): /bin/id
Requires(post): /usr/sbin/usermod
Requires(post,preun): /sbin/chkconfig
@@ -114,7 +116,6 @@ Requires(pre): /usr/sbin/groupadd
Requires(pre): /usr/sbin/useradd
Requires: %{name}-clients >= %{version}-%{release}
Requires: %{name}-libs = %{version}-%{release}
-%{?with_io_uring:Requires: liburing >= 2.5}
Requires: rc-scripts >= 0.4.3.0
Requires: systemd-units >= 38
Requires: tzdata
@@ -145,10 +146,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define filterout_c -fvar-tracking-assignments
%define filterout_cxx -fvar-tracking-assignments
-# omitted contribs:
-# spi, test_decoding, worker_spi - examples/tests
-# tsearch2 - old module for compatibility only
-%define contrib_modules amcheck 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 %{?with_perl:jsonb_plperl} %{?with_python:jsonb_plpython} lo ltree %{?with_python:ltree_plpython} oid2name pageinspect passwordcheck pg_buffercache pg_freespacemap pg_prewarm 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 amcheck auth_delay auto_explain basebackup_to_shell basic_archive 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 pageinspect passwordcheck pg_buffercache pg_freespacemap pg_logicalinspect pg_overexplain pg_plan_advice pg_prewarm pg_stash_advice pg_stat_statements pg_surgery pg_trgm pg_visibility pg_walinspect pgcrypto pgrowlocks pgstattuple postgres_fdw seg %{?with_selinux:sepgsql} spi sslinfo tablefunc tcn test_decoding tsm_system_rows tsm_system_time unaccent uuid-ossp vacuumlo xml2
%description
PostgreSQL Data Base Management System (formerly known as Postgres,
@@ -604,6 +602,8 @@ Summary: PL/perl - PostgreSQL procedural language
Summary(pl.UTF-8): PL/perl - język proceduralny bazy danych PostgreSQL
Group: Applications/Databases
Requires: %{name} = %{version}-%{release}
+# libperl alone has no strict.pm, which PL/Perl loads at startup
+Requires: perl-base
%description module-plperl
From PostgreSQL documentation:
@@ -672,7 +672,6 @@ Summary: PL/Tcl - PostgreSQL procedural language
Summary(pl.UTF-8): PL/Tcl - język proceduralny bazy danych PostgreSQL
Group: Applications/Databases
Requires: %{name} = %{version}-%{release}
-Requires: tcl(Pgtcl)
%description module-pltcl
From PostgreSQL documentation:
@@ -865,6 +864,7 @@ march="-mx32"
--with-libxml \
--with-libxslt \
%{?with_llvm:--with-llvm} \
+ --with-lz4 \
--with-openssl \
--with-pam \
%{?with_perl:--with-perl} \
@@ -873,7 +873,8 @@ march="-mx32"
--with-system-tzdata=%{_datadir}/zoneinfo \
%{?with_systemd:--with-systemd} \
%{?with_tcl:--with-tcl --with-tclconfig=%{_ulibdir}} \
- --with-uuid=e2fs
+ --with-uuid=e2fs \
+ --with-zstd
%{__make}
@@ -945,7 +946,7 @@ tar zxf %{SOURCE2} -C howto
for f in libpq5 pgscripts postgres psql initdb ecpg ecpglib6 \
plpgsql %{?with_perl:plperl} %{?with_python:plpython} \
pg_amcheck pg_archivecleanup pg_basebackup pg_checksums pg_combinebackup pg_config pg_controldata pg_ctl pg_dump pg_resetwal pg_rewind pg_test_fsync \
- pg_test_timing pg_upgrade pg_waldump pg_walsummary pg_verifybackup; do
+ pg_test_timing pg_upgrade pg_waldump pg_walsummary pg_verifybackup postgresql-regress; do
%find_lang $f-%{mver}
done
# merge locales
@@ -970,47 +971,56 @@ cp -p src/pl/plperl/ppport.h $RPM_BUILD_ROOT%{_includedir}/postgresql/server/
# package it...? nah, why bother.
%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/postgresql/html
+# spi examples go to %doc of -contrib
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/postgresql/extension
%clean
rm -rf $RPM_BUILD_ROOT
-%pretrans
-PG_DB_CLUSTERS=""
-if [ -f /etc/sysconfig/postgresql ]; then
- . /etc/sysconfig/postgresql
- if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
- PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
- fi
-fi
-foundold=0
-for pgdir in $PG_DB_CLUSTERS; do
- if [ -f $pgdir/PG_VERSION ]; then
- if [ $(cat $pgdir/PG_VERSION) != '%{mver}' ]; then
- echo "Found database(s) in older, incompatible format in cluster $pgdir."
- foundold=1
- fi
- fi
-done
-if [ "$foundold" = "1" ]; then
- echo
- echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
- echo "and clean (or rename) those directories; then upgrade postgresql and"
- echo "restore all data (using pg_restore or psql)."
- echo "Remember to stop the daemon before upgrading!"
- echo
- echo "Alternatively you can use pg_upgrade for 8.3+ online upgrade with"
- echo "some restrictions: http://www.postgresql.org/docs/10.0/static/pgupgrade.html"
- echo
- echo "Warning for upgrade from version *before* 7.2."
- echo "Please note, that postgresql module path changed from"
- echo "%{_libdir}/pgsql/module to %{_libdir}/postgresql. Change the path"
- echo "in dump file before restore."
- echo
- echo "Warning for upgrade from version *before* 7.3."
- echo "Reading following webpage is encouraged:"
- echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3"
- exit 1
-fi
+%pretrans -p <lua>
+-- refuse to replace the server while a cluster still holds an older on-disk format
+local vars = {}
+local f = io.open("/etc/sysconfig/postgresql")
+if f then
+ for line in f:lines() do
+ local k, v = line:match("^%%s*([%%w_]+)=(.*)$")
+ if k then
+ vars[k] = v:gsub("%%s+#.*$", ""):gsub("^[\"']", ""):gsub("[\"']%%s*$", "")
+ end
+ end
+ f:close()
+end
+local clusters = vars["PG_DB_CLUSTERS"] or ""
+if clusters == "" then
+ clusters = vars["POSTGRES_DATA_DIR"] or ""
+end
+local old = {}
+for pgdir in clusters:gmatch("%%S+") do
+ local v = io.open(pgdir .. "/PG_VERSION")
+ if v then
+ local ver = v:read("*l")
+ v:close()
+ if ver ~= "%{mver}" then
+ table.insert(old, pgdir)
+ end
+ end
+end
+if #old > 0 then
+ for _, pgdir in ipairs(old) do
+ print("Found database(s) in older, incompatible format in cluster " .. pgdir .. ".")
+ end
+ print([[
+
+Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)
+and clean (or rename) those directories; then upgrade postgresql and
+restore all data (using pg_restore or psql).
+Remember to stop the daemon before upgrading!
+
+Alternatively you can use pg_upgrade for 9.2+ online upgrade with
+some restrictions: https://www.postgresql.org/docs/%{mver}/pgupgrade.html
+]])
+ error("old PostgreSQL cluster format", 0)
+end
%pre
%groupadd -g 88 -r postgres
@@ -1097,15 +1107,15 @@ fi
%attr(755,root,root) %{_bindir}/pgbench
%attr(755,root,root) %{_bindir}/postgres
-%attr(755,root,root) %{_pgmoduledir}/cyrillic_and_mic.so
+%attr(755,root,root) %{_pgmoduledir}/cyrillic.so
%attr(755,root,root) %{_pgmoduledir}/dict_int.so
%attr(755,root,root) %{_pgmoduledir}/dict_snowball.so
%attr(755,root,root) %{_pgmoduledir}/dict_xsyn.so
%attr(755,root,root) %{_pgmoduledir}/euc*.so
%attr(755,root,root) %{_pgmoduledir}/latin2_and_win1250.so
-%attr(755,root,root) %{_pgmoduledir}/latin_and_mic.so
%attr(755,root,root) %{_pgmoduledir}/libpqwalreceiver.so
%attr(755,root,root) %{_pgmoduledir}/pgoutput.so
+%attr(755,root,root) %{_pgmoduledir}/pgrepack.so
%attr(755,root,root) %{_pgmoduledir}/plpgsql.so
%attr(755,root,root) %{_pgmoduledir}/utf8_and_*.so
%dir %{_pgsqldir}
@@ -1203,7 +1213,7 @@ fi
%{_pkgconfigdir}/libpq.pc
%{_mandir}/man1/pg_config.1*
-%files backend-devel
+%files backend-devel -f postgresql-regress-%{mver}.lang
%defattr(644,root,root,755)
%{_includedir}/postgresql/server
%dir %{_pgmoduledir}/pgxs
@@ -1376,18 +1386,21 @@ fi
%if %{with curl}
%files oauth
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libpq-oauth-%{mver}.so
+%attr(755,root,root) %{_libdir}/libpq-oauth.so
%endif
%files contrib
%defattr(644,root,root,755)
-%doc contrib/README
+%doc contrib/README contrib/spi/*.example
%attr(755,root,root) %{_bindir}/oid2name
%attr(755,root,root) %{_bindir}/vacuumlo
%attr(755,root,root) %{_pgmoduledir}/_int.so
%attr(755,root,root) %{_pgmoduledir}/amcheck.so
%attr(755,root,root) %{_pgmoduledir}/auth_delay.so
%attr(755,root,root) %{_pgmoduledir}/auto_explain.so
+%attr(755,root,root) %{_pgmoduledir}/autoinc.so
+%attr(755,root,root) %{_pgmoduledir}/basebackup_to_shell.so
+%attr(755,root,root) %{_pgmoduledir}/basic_archive.so
%attr(755,root,root) %{_pgmoduledir}/bloom.so
%attr(755,root,root) %{_pgmoduledir}/btree_gin.so
%attr(755,root,root) %{_pgmoduledir}/btree_gist.so
@@ -1397,21 +1410,31 @@ fi
%attr(755,root,root) %{_pgmoduledir}/file_fdw.so
%attr(755,root,root) %{_pgmoduledir}/fuzzystrmatch.so
%attr(755,root,root) %{_pgmoduledir}/hstore.so
+%attr(755,root,root) %{_pgmoduledir}/insert_username.so
%attr(755,root,root) %{_pgmoduledir}/isn.so
%attr(755,root,root) %{_pgmoduledir}/ltree.so
+%attr(755,root,root) %{_pgmoduledir}/moddatetime.so
%attr(755,root,root) %{_pgmoduledir}/pageinspect.so
%attr(755,root,root) %{_pgmoduledir}/passwordcheck.so
%attr(755,root,root) %{_pgmoduledir}/pg_buffercache.so
%attr(755,root,root) %{_pgmoduledir}/pg_freespacemap.so
+%attr(755,root,root) %{_pgmoduledir}/pg_logicalinspect.so
+%attr(755,root,root) %{_pgmoduledir}/pg_overexplain.so
+%attr(755,root,root) %{_pgmoduledir}/pg_plan_advice.so
%attr(755,root,root) %{_pgmoduledir}/pg_prewarm.so
+%attr(755,root,root) %{_pgmoduledir}/pg_stash_advice.so
%attr(755,root,root) %{_pgmoduledir}/pg_stat_statements.so
+%attr(755,root,root) %{_pgmoduledir}/pg_surgery.so
%attr(755,root,root) %{_pgmoduledir}/pg_visibility.so
+%attr(755,root,root) %{_pgmoduledir}/pg_walinspect.so
%attr(755,root,root) %{_pgmoduledir}/pgrowlocks.so
%attr(755,root,root) %{_pgmoduledir}/pgstattuple.so
%attr(755,root,root) %{_pgmoduledir}/postgres_fdw.so
+%attr(755,root,root) %{_pgmoduledir}/refint.so
%attr(755,root,root) %{_pgmoduledir}/seg.so
%attr(755,root,root) %{_pgmoduledir}/sslinfo.so
%attr(755,root,root) %{_pgmoduledir}/tcn.so
+%attr(755,root,root) %{_pgmoduledir}/test_decoding.so
%attr(755,root,root) %{_pgmoduledir}/tsm_system_rows.so
%attr(755,root,root) %{_pgmoduledir}/tsm_system_time.so
%attr(755,root,root) %{_pgmoduledir}/unaccent.so
@@ -1425,6 +1448,12 @@ fi
%{_pgmoduledir}/bitcode/auth_delay.index.bc
%{_pgmoduledir}/bitcode/auto_explain
%{_pgmoduledir}/bitcode/auto_explain.index.bc
+%{_pgmoduledir}/bitcode/autoinc
+%{_pgmoduledir}/bitcode/autoinc.index.bc
+%{_pgmoduledir}/bitcode/basebackup_to_shell
+%{_pgmoduledir}/bitcode/basebackup_to_shell.index.bc
+%{_pgmoduledir}/bitcode/basic_archive
+%{_pgmoduledir}/bitcode/basic_archive.index.bc
%{_pgmoduledir}/bitcode/bloom
%{_pgmoduledir}/bitcode/bloom.index.bc
%{_pgmoduledir}/bitcode/btree_gin
@@ -1443,10 +1472,14 @@ fi
%{_pgmoduledir}/bitcode/fuzzystrmatch.index.bc
%{_pgmoduledir}/bitcode/hstore
%{_pgmoduledir}/bitcode/hstore.index.bc
+%{_pgmoduledir}/bitcode/insert_username
+%{_pgmoduledir}/bitcode/insert_username.index.bc
%{_pgmoduledir}/bitcode/isn
%{_pgmoduledir}/bitcode/isn.index.bc
%{_pgmoduledir}/bitcode/ltree
%{_pgmoduledir}/bitcode/ltree.index.bc
+%{_pgmoduledir}/bitcode/moddatetime
+%{_pgmoduledir}/bitcode/moddatetime.index.bc
%{_pgmoduledir}/bitcode/pageinspect
%{_pgmoduledir}/bitcode/pageinspect.index.bc
%{_pgmoduledir}/bitcode/passwordcheck
@@ -1455,24 +1488,40 @@ fi
%{_pgmoduledir}/bitcode/pg_buffercache.index.bc
%{_pgmoduledir}/bitcode/pg_freespacemap
%{_pgmoduledir}/bitcode/pg_freespacemap.index.bc
+%{_pgmoduledir}/bitcode/pg_logicalinspect
+%{_pgmoduledir}/bitcode/pg_logicalinspect.index.bc
+%{_pgmoduledir}/bitcode/pg_overexplain
+%{_pgmoduledir}/bitcode/pg_overexplain.index.bc
+%{_pgmoduledir}/bitcode/pg_plan_advice
+%{_pgmoduledir}/bitcode/pg_plan_advice.index.bc
%{_pgmoduledir}/bitcode/pg_prewarm
%{_pgmoduledir}/bitcode/pg_prewarm.index.bc
+%{_pgmoduledir}/bitcode/pg_stash_advice
+%{_pgmoduledir}/bitcode/pg_stash_advice.index.bc
%{_pgmoduledir}/bitcode/pg_stat_statements
%{_pgmoduledir}/bitcode/pg_stat_statements.index.bc
+%{_pgmoduledir}/bitcode/pg_surgery
+%{_pgmoduledir}/bitcode/pg_surgery.index.bc
%{_pgmoduledir}/bitcode/pg_visibility
%{_pgmoduledir}/bitcode/pg_visibility.index.bc
+%{_pgmoduledir}/bitcode/pg_walinspect
+%{_pgmoduledir}/bitcode/pg_walinspect.index.bc
%{_pgmoduledir}/bitcode/pgrowlocks
%{_pgmoduledir}/bitcode/pgrowlocks.index.bc
%{_pgmoduledir}/bitcode/pgstattuple
%{_pgmoduledir}/bitcode/pgstattuple.index.bc
%{_pgmoduledir}/bitcode/postgres_fdw
%{_pgmoduledir}/bitcode/postgres_fdw.index.bc
+%{_pgmoduledir}/bitcode/refint
+%{_pgmoduledir}/bitcode/refint.index.bc
%{_pgmoduledir}/bitcode/seg
%{_pgmoduledir}/bitcode/seg.index.bc
%{_pgmoduledir}/bitcode/sslinfo
%{_pgmoduledir}/bitcode/sslinfo.index.bc
%{_pgmoduledir}/bitcode/tcn
%{_pgmoduledir}/bitcode/tcn.index.bc
+%{_pgmoduledir}/bitcode/test_decoding
+%{_pgmoduledir}/bitcode/test_decoding.index.bc
%{_pgmoduledir}/bitcode/tsm_system_rows
%{_pgmoduledir}/bitcode/tsm_system_rows.index.bc
%{_pgmoduledir}/bitcode/tsm_system_time
@@ -1484,6 +1533,8 @@ fi
%endif
%{_pgsqldir}/amcheck--*.sql
%{_pgsqldir}/amcheck.control
+%{_pgsqldir}/autoinc--*.sql
+%{_pgsqldir}/autoinc.control
%{_pgsqldir}/bloom--*.sql
%{_pgsqldir}/bloom.control
%{_pgsqldir}/btree_gin--*.sql
@@ -1506,6 +1557,8 @@ fi
%{_pgsqldir}/fuzzystrmatch.control
%{_pgsqldir}/hstore--*.sql
%{_pgsqldir}/hstore.control
+%{_pgsqldir}/insert_username--*.sql
+%{_pgsqldir}/insert_username.control
%{_pgsqldir}/intarray--*.sql
%{_pgsqldir}/intarray.control
%{_pgsqldir}/intagg--*.sql
@@ -1514,24 +1567,36 @@ fi
%{_pgsqldir}/isn.control
%{_pgsqldir}/ltree--*.sql
%{_pgsqldir}/ltree.control
+%{_pgsqldir}/moddatetime--*.sql
+%{_pgsqldir}/moddatetime.control
%{_pgsqldir}/pageinspect--*.sql
%{_pgsqldir}/pageinspect.control
%{_pgsqldir}/pg_buffercache--*.sql
%{_pgsqldir}/pg_buffercache.control
%{_pgsqldir}/pg_freespacemap--*.sql
%{_pgsqldir}/pg_freespacemap.control
+%{_pgsqldir}/pg_logicalinspect--*.sql
+%{_pgsqldir}/pg_logicalinspect.control
%{_pgsqldir}/pg_prewarm--*.sql
%{_pgsqldir}/pg_prewarm.control
+%{_pgsqldir}/pg_stash_advice--*.sql
+%{_pgsqldir}/pg_stash_advice.control
%{_pgsqldir}/pg_stat_statements--*.sql
%{_pgsqldir}/pg_stat_statements.control
+%{_pgsqldir}/pg_surgery--*.sql
+%{_pgsqldir}/pg_surgery.control
%{_pgsqldir}/pg_visibility--*.sql
%{_pgsqldir}/pg_visibility.control
+%{_pgsqldir}/pg_walinspect--*.sql
+%{_pgsqldir}/pg_walinspect.control
%{_pgsqldir}/pgrowlocks--*.sql
%{_pgsqldir}/pgrowlocks.control
%{_pgsqldir}/pgstattuple--*.sql
%{_pgsqldir}/pgstattuple.control
%{_pgsqldir}/postgres_fdw--*.sql
%{_pgsqldir}/postgres_fdw.control
+%{_pgsqldir}/refint--*.sql
+%{_pgsqldir}/refint.control
%{_pgsqldir}/seg--*.sql
%{_pgsqldir}/seg.control
%{_pgsqldir}/sslinfo--*.sql
@@ -1547,8 +1612,13 @@ fi
%{_pgsqldir}/uuid-ossp--*.sql
%{_pgsqldir}/uuid-ossp.control
%if %{with perl}
+%attr(755,root,root) %{_pgmoduledir}/bool_plperl.so
%attr(755,root,root) %{_pgmoduledir}/hstore_plperl.so
%attr(755,root,root) %{_pgmoduledir}/jsonb_plperl.so
+%{_pgsqldir}/bool_plperl--*.sql
+%{_pgsqldir}/bool_plperl.control
+%{_pgsqldir}/bool_plperlu--*.sql
+%{_pgsqldir}/bool_plperlu.control
%{_pgsqldir}/hstore_plperl--*.sql
%{_pgsqldir}/hstore_plperl.control
%{_pgsqldir}/hstore_plperlu--*.sql
@@ -1558,6 +1628,8 @@ fi
%{_pgsqldir}/jsonb_plperlu--*.sql
%{_pgsqldir}/jsonb_plperlu.control
%if %{with llvm}
+%{_pgmoduledir}/bitcode/bool_plperl
+%{_pgmoduledir}/bitcode/bool_plperl.index.bc
%{_pgmoduledir}/bitcode/hstore_plperl
%{_pgmoduledir}/bitcode/hstore_plperl.index.bc
%{_pgmoduledir}/bitcode/jsonb_plperl
diff --git a/postgresql-conf.patch b/postgresql-conf.patch
index 71db080..41a610e 100644
--- a/postgresql-conf.patch
+++ b/postgresql-conf.patch
@@ -1,17 +1,18 @@
-diff -urNp -x '*.orig' postgresql-12.4.org/src/backend/utils/misc/postgresql.conf.sample postgresql-12.4/src/backend/utils/misc/postgresql.conf.sample
---- postgresql-12.4.org/src/backend/utils/misc/postgresql.conf.sample 2020-08-10 23:15:53.000000000 +0200
-+++ postgresql-12.4/src/backend/utils/misc/postgresql.conf.sample 2021-11-09 09:30:59.882648111 +0100
-@@ -441,7 +441,7 @@
+diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample
+index 5218395..427858e 100644
+--- a/src/backend/utils/misc/postgresql.conf.sample
++++ b/src/backend/utils/misc/postgresql.conf.sample
+@@ -505,7 +505,7 @@
# - Where to Log -
--#log_destination = 'stderr' # Valid values are combinations of
-+log_destination = 'syslog' # Valid values are combinations of
- # stderr, csvlog, jsonlog, syslog, and
- # eventlog, depending on platform.
- # csvlog and jsonlog require
-@@ -463,9 +463,9 @@ log_destination = 'syslog' # Valid valu
- # in all cases.
+-#log_destination = 'stderr' # Valid values are combinations of
++log_destination = 'syslog' # Valid values are combinations of
+ # stderr, csvlog, jsonlog, syslog, and
+ # eventlog, depending on platform.
+ # csvlog and jsonlog require
+@@ -539,9 +539,9 @@
+ # in all cases.
# These are relevant when logging to syslog:
-#syslog_facility = 'LOCAL0'
@@ -23,4 +24,3 @@ diff -urNp -x '*.orig' postgresql-12.4.org/src/backend/utils/misc/postgresql.con
#syslog_split_messages = on
# This is only relevant when logging to eventlog (Windows):
-
diff --git a/postgresql-gssapi-delegation-optional.patch b/postgresql-gssapi-delegation-optional.patch
index 6e3bc0d..08ddedd 100644
--- a/postgresql-gssapi-delegation-optional.patch
+++ b/postgresql-gssapi-delegation-optional.patch
@@ -1,7 +1,8 @@
-diff -urNp -x '*.orig' postgresql-18.4.base/configure.ac postgresql-18.4/configure.ac
---- postgresql-18.4.orig/configure.ac 2026-08-12 21:06:20.724222260 +0200
-+++ postgresql-18.4/configure.ac 2026-08-12 21:10:06.639571524 +0200
-@@ -1364,8 +1364,8 @@ fi
+diff --git a/configure.ac b/configure.ac
+index f3e21b3..fe240a1 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1406,8 +1406,8 @@ fi
if test "$with_gssapi" = yes ; then
if test "$PORTNAME" != "win32"; then
@@ -12,7 +13,7 @@ diff -urNp -x '*.orig' postgresql-18.4.base/configure.ac postgresql-18.4/configu
else
LIBS="$LIBS -lgssapi32"
fi
-@@ -1576,8 +1576,12 @@ fi
+@@ -1618,8 +1618,12 @@ fi
if test "$with_gssapi" = yes ; then
AC_CHECK_HEADERS(gssapi/gssapi.h, [],
[AC_CHECK_HEADERS(gssapi.h, [], [AC_MSG_ERROR([gssapi.h header file is required for GSSAPI])])])
@@ -27,10 +28,11 @@ diff -urNp -x '*.orig' postgresql-18.4.base/configure.ac postgresql-18.4/configu
fi
PGAC_PATH_PROGS(OPENSSL, openssl)
-diff -urNp -x '*.orig' postgresql-18.4.base/meson.build postgresql-18.4/meson.build
---- postgresql-18.4.orig/meson.build 2026-05-11 21:44:35.000000000 +0200
-+++ postgresql-18.4/meson.build 2026-08-12 21:10:28.259571532 +0200
-@@ -681,28 +681,31 @@ if not gssapiopt.disabled()
+diff --git a/meson.build b/meson.build
+index 30f6b67..db681a0 100644
+--- a/meson.build
++++ b/meson.build
+@@ -797,28 +797,31 @@ if not gssapiopt.disabled()
have_gssapi = false
endif
@@ -38,12 +40,12 @@ diff -urNp -x '*.orig' postgresql-18.4.base/meson.build postgresql-18.4/meson.bu
+ # credentials, which is optional; Heimdal 7.x has neither.
+ have_gssapi_ext = false
if not have_gssapi
- elif cc.check_header('gssapi/gssapi_ext.h', dependencies: gssapi_deps, required: false,
+ elif cc.check_header('gssapi/gssapi_ext.h', dependencies: [gssapi], required: false,
args: test_c_args, include_directories: postgres_inc)
cdata.set('HAVE_GSSAPI_GSSAPI_EXT_H', 1)
-- elif cc.check_header('gssapi_ext.h', dependencies: gssapi_deps, required: gssapiopt,
+- elif cc.check_header('gssapi_ext.h', dependencies: [gssapi], required: gssapiopt,
+ have_gssapi_ext = true
-+ elif cc.check_header('gssapi_ext.h', dependencies: gssapi_deps, required: false,
++ elif cc.check_header('gssapi_ext.h', dependencies: [gssapi], required: false,
args: test_c_args, include_directories: postgres_inc)
cdata.set('HAVE_GSSAPI_EXT_H', 1)
- else
@@ -52,13 +54,13 @@ diff -urNp -x '*.orig' postgresql-18.4.base/meson.build postgresql-18.4/meson.bu
endif
- if not have_gssapi
-- elif cc.has_function('gss_store_cred_into', dependencies: gssapi_deps,
+- elif cc.has_function('gss_store_cred_into', dependencies: [gssapi],
- args: test_c_args, include_directories: postgres_inc)
+ if have_gssapi
cdata.set('ENABLE_GSS', 1)
+ if have_gssapi_ext and cc.has_function('gss_store_cred_into',
-+ dependencies: gssapi_deps,
++ dependencies: [gssapi],
+ args: test_c_args, include_directories: postgres_inc)
+ cdata.set('HAVE_GSS_STORE_CRED_INTO', 1)
+ endif
@@ -72,13 +74,15 @@ diff -urNp -x '*.orig' postgresql-18.4.base/meson.build postgresql-18.4/meson.bu
endif
if not have_gssapi and gssapiopt.enabled()
-diff -urNp -x '*.orig' postgresql-18.4.base/src/backend/commands/variable.c postgresql-18.4/src/backend/commands/variable.c
---- postgresql-18.4.orig/src/backend/commands/variable.c 2026-05-11 21:44:35.000000000 +0200
-+++ postgresql-18.4/src/backend/commands/variable.c 2026-08-12 21:08:02.096238166 +0200
-@@ -1246,6 +1246,19 @@ check_default_with_oids(bool *newval, vo
+diff --git a/src/backend/commands/variable.c b/src/backend/commands/variable.c
+index 8afd252..80cfa3d 100644
+--- a/src/backend/commands/variable.c
++++ b/src/backend/commands/variable.c
+@@ -1245,6 +1245,19 @@ check_default_with_oids(bool *newval, void **extra, GucSource source)
+ return true;
}
- bool
++bool
+check_gss_accept_delegation(bool *newval, void **extra, GucSource source)
+{
+#ifndef HAVE_GSS_STORE_CRED_INTO
@@ -91,13 +95,13 @@ diff -urNp -x '*.orig' postgresql-18.4.base/src/backend/commands/variable.c post
+ return true;
+}
+
-+bool
+ bool
check_ssl(bool *newval, void **extra, GucSource source)
{
- #ifndef USE_SSL
-diff -urNp -x '*.orig' postgresql-18.4.base/src/backend/libpq/be-gssapi-common.c postgresql-18.4/src/backend/libpq/be-gssapi-common.c
---- postgresql-18.4.orig/src/backend/libpq/be-gssapi-common.c 2026-05-11 21:44:35.000000000 +0200
-+++ postgresql-18.4/src/backend/libpq/be-gssapi-common.c 2026-08-12 21:06:40.929571493 +0200
+diff --git a/src/backend/libpq/be-gssapi-common.c b/src/backend/libpq/be-gssapi-common.c
+index 034c548..50677f7 100644
+--- a/src/backend/libpq/be-gssapi-common.c
++++ b/src/backend/libpq/be-gssapi-common.c
@@ -103,6 +103,7 @@ pg_GSS_error(const char *errmsg,
void
pg_store_delegated_credential(gss_cred_id_t cred)
@@ -106,7 +110,7 @@ diff -urNp -x '*.orig' postgresql-18.4.base/src/backend/libpq/be-gssapi-common.c
OM_uint32 major,
minor;
gss_OID_set mech;
-@@ -144,4 +145,11 @@ pg_store_delegated_credential(gss_cred_i
+@@ -144,4 +145,11 @@ pg_store_delegated_credential(gss_cred_id_t cred)
* gss_acquire_cred will find the delegated credentials we stored.
*/
setenv("KRB5CCNAME", GSS_MEMORY_CACHE, 1);
@@ -118,21 +122,22 @@ diff -urNp -x '*.orig' postgresql-18.4.base/src/backend/libpq/be-gssapi-common.c
+ elog(ERROR, "GSSAPI delegation is not supported by this build");
+#endif
}
-diff -urNp -x '*.orig' postgresql-18.4.base/src/backend/utils/misc/guc_tables.c postgresql-18.4/src/backend/utils/misc/guc_tables.c
---- postgresql-18.4.orig/src/backend/utils/misc/guc_tables.c 2026-05-11 21:44:35.000000000 +0200
-+++ postgresql-18.4/src/backend/utils/misc/guc_tables.c 2026-08-12 21:07:01.459571494 +0200
-@@ -1837,7 +1837,7 @@ struct config_bool ConfigureNamesBool[]
- },
- &pg_gss_accept_delegation,
- false,
-- NULL, NULL, NULL
-+ check_gss_accept_delegation, NULL, NULL
- },
+diff --git a/src/backend/utils/misc/guc_parameters.dat b/src/backend/utils/misc/guc_parameters.dat
+index f08536a..27f8aa0 100644
+--- a/src/backend/utils/misc/guc_parameters.dat
++++ b/src/backend/utils/misc/guc_parameters.dat
+@@ -1215,6 +1215,7 @@
+ short_desc => 'Sets whether GSSAPI delegation should be accepted from the client.',
+ variable => 'pg_gss_accept_delegation',
+ boot_val => 'false',
++ check_hook => 'check_gss_accept_delegation',
+ },
- {
-diff -urNp -x '*.orig' postgresql-18.4.base/src/include/libpq/pg-gssapi.h postgresql-18.4/src/include/libpq/pg-gssapi.h
---- postgresql-18.4.orig/src/include/libpq/pg-gssapi.h 2026-05-11 21:44:35.000000000 +0200
-+++ postgresql-18.4/src/include/libpq/pg-gssapi.h 2026-08-12 21:10:12.692904860 +0200
+ { name => 'hash_mem_multiplier', type => 'real', context => 'PGC_USERSET', group => 'RESOURCES_MEM',
+diff --git a/src/include/libpq/pg-gssapi.h b/src/include/libpq/pg-gssapi.h
+index d64f2da..fe85812 100644
+--- a/src/include/libpq/pg-gssapi.h
++++ b/src/include/libpq/pg-gssapi.h
@@ -19,11 +19,15 @@
/* IWYU pragma: begin_exports */
#if defined(HAVE_GSSAPI_H)
@@ -149,15 +154,16 @@ diff -urNp -x '*.orig' postgresql-18.4.base/src/include/libpq/pg-gssapi.h postgr
/* IWYU pragma: end_exports */
/*
-diff -urNp -x '*.orig' postgresql-18.4.base/src/include/utils/guc_hooks.h postgresql-18.4/src/include/utils/guc_hooks.h
---- postgresql-18.4.orig/src/include/utils/guc_hooks.h 2026-05-11 21:44:35.000000000 +0200
-+++ postgresql-18.4/src/include/utils/guc_hooks.h 2026-08-12 21:07:51.809571497 +0200
-@@ -61,6 +61,8 @@ extern bool check_default_text_search_co
+diff --git a/src/include/utils/guc_hooks.h b/src/include/utils/guc_hooks.h
+index bedd29a..7b3d05c 100644
+--- a/src/include/utils/guc_hooks.h
++++ b/src/include/utils/guc_hooks.h
+@@ -61,6 +61,8 @@ extern bool check_default_text_search_config(char **newval, void **extra, GucSou
extern void assign_default_text_search_config(const char *newval, void *extra);
extern bool check_default_with_oids(bool *newval, void **extra,
GucSource source);
+extern bool check_gss_accept_delegation(bool *newval, void **extra,
+ GucSource source);
+ extern const char *show_effective_wal_level(void);
extern bool check_huge_page_size(int *newval, void **extra, GucSource source);
extern void assign_io_method(int newval, void *extra);
- extern bool check_io_max_concurrency(int *newval, void **extra, GucSource source);
diff --git a/postgresql-link.patch b/postgresql-link.patch
index ae09902..3b44da9 100644
--- a/postgresql-link.patch
+++ b/postgresql-link.patch
@@ -1,7 +1,8 @@
-diff -urNp -x '*.orig' postgresql-12.4.org/configure.ac postgresql-12.4/configure.ac
---- postgresql-12.4.org/configure.ac 2021-11-09 09:31:36.707897270 +0100
-+++ postgresql-12.4/configure.ac 2021-11-09 09:31:40.651435766 +0100
-@@ -1470,6 +1470,7 @@ fi
+diff --git a/configure.ac b/configure.ac
+index e218946..f3e21b3 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1668,6 +1668,7 @@ fi
if test "$with_bonjour" = yes ; then
AC_CHECK_HEADER(dns_sd.h, [], [AC_MSG_ERROR([header file <dns_sd.h> is required for Bonjour])])
@@ -9,7 +10,7 @@ diff -urNp -x '*.orig' postgresql-12.4.org/configure.ac postgresql-12.4/configur
dnl At some point we might add something like
dnl AC_SEARCH_LIBS(DNSServiceRegister, dns_sd)
dnl but right now, what that would mainly accomplish is to encourage
-@@ -1477,6 +1478,7 @@ dnl people to try to use the avahi imple
+@@ -1675,6 +1676,7 @@ dnl people to try to use the avahi implementation, which does not work.
dnl If you want to use Apple's own Bonjour code on another platform,
dnl just add -ldns_sd to LIBS manually.
fi
@@ -17,10 +18,11 @@ diff -urNp -x '*.orig' postgresql-12.4.org/configure.ac postgresql-12.4/configur
# for contrib/uuid-ossp
if test "$with_uuid" = bsd ; then
-diff -urNp -x '*.orig' postgresql-12.4.org/src/Makefile.global.in postgresql-12.4/src/Makefile.global.in
---- postgresql-12.4.org/src/Makefile.global.in 2020-08-10 23:15:53.000000000 +0200
-+++ postgresql-12.4/src/Makefile.global.in 2021-11-09 09:31:40.651435766 +0100
-@@ -173,6 +173,7 @@ includedir_internal = $(pkgincludedir)/i
+diff --git a/src/Makefile.global.in b/src/Makefile.global.in
+index dbd5f9d..df178f8 100644
+--- a/src/Makefile.global.in
++++ b/src/Makefile.global.in
+@@ -177,6 +177,7 @@ includedir_internal = $(pkgincludedir)/internal
pgxsdir = $(pkglibdir)/pgxs
bitcodedir = $(pkglibdir)/bitcode
@@ -28,11 +30,12 @@ diff -urNp -x '*.orig' postgresql-12.4.org/src/Makefile.global.in postgresql-12.
##########################################################################
#
-diff -urNp -x '*.orig' postgresql-12.4.org/src/backend/Makefile postgresql-12.4/src/backend/Makefile
---- postgresql-12.4.org/src/backend/Makefile 2020-08-10 23:15:53.000000000 +0200
-+++ postgresql-12.4/src/backend/Makefile 2021-11-09 09:31:40.651435766 +0100
-@@ -60,7 +60,7 @@ ifneq ($(PORTNAME), win32)
- ifneq ($(PORTNAME), win32)
+diff --git a/src/backend/Makefile b/src/backend/Makefile
+index 162d3f1..2c84ed1 100644
+--- a/src/backend/Makefile
++++ b/src/backend/Makefile
+@@ -88,7 +88,7 @@ ifneq ($(PORTNAME), win32)
+ ifneq ($(PORTNAME), aix)
postgres: $(OBJS)
- $(CC) $(CFLAGS) $(call expand_subsys,$^) $(LDFLAGS) $(LIBS) -o $@
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/postgresql.git/commitdiff/f956a7e6071fac8683a863934dfb3d3c0d4d8add
More information about the pld-cvs-commit
mailing list