diff mbox series

[meta-oe,25/55] postgresql: upgrade 18.6 -> 19.0

Message ID 20261125080732.2419614-31-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-multimedia] clightd: Port ALS sensor to libiio 1.0 | expand

Commit Message

Khem Raj Nov. 25, 2026, 8:06 a.m. UTC
- new major release: REPACK (CONCURRENTLY), plan advice extensions,
  logical replication of sequences and without a restart, WAIT FOR
  read-your-writes on standbys, parallel autovacuum of indexes
- removed RADIUS authentication and the MULE_INTERNAL encoding;
  standard_conforming_strings is always on; JIT is off by default
- C11 is required instead of C99
- the on-disk format changed: existing clusters need pg_upgrade or a
  dump and restore

Refresh 0003-configure.ac-bypass-autoconf-2.69-version-check.patch
(copyright year context) and drop the line offsets from the other
patches. The configure options are unchanged and none of the removed
features had a PACKAGECONFIG. Add UPSTREAM_CHECK_URI/REGEX so the
check looks at the source index instead of the v${PV} directory.
pg-cron 1.6.8 (which declares PostgreSQL 19 support) and pgpool2 4.7.3
were compile-tested on the host against PostgreSQL 19.0.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../postgresql/files/0001-Add-support-for-RISC-V.patch      | 2 +-
 .../postgresql/files/0002-Improve-reproducibility.patch     | 2 +-
 ...03-configure.ac-bypass-autoconf-2.69-version-check.patch | 6 +++---
 .../files/0004-config_info.c-not-expose-build-info.patch    | 6 +++---
 .../0005-postgresql-fix-ptest-failure-of-sysviews.patch     | 4 ++--
 .../recipes-dbs/postgresql/files/not-check-libperl.patch    | 4 ++--
 meta-oe/recipes-dbs/postgresql/postgresql.inc               | 2 ++
 .../postgresql/{postgresql_18.6.bb => postgresql_19.0.bb}   | 2 +-
 8 files changed, 15 insertions(+), 13 deletions(-)
 rename meta-oe/recipes-dbs/postgresql/{postgresql_18.6.bb => postgresql_19.0.bb} (87%)
diff mbox series

Patch

diff --git a/meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch b/meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch
index 8ab8f0970b..e1ebbd3fd9 100644
--- a/meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch
+++ b/meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch
@@ -13,7 +13,7 @@  Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
  1 file changed, 3 insertions(+), 2 deletions(-)
 
 diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h
-index 2f73f9f..04b0f8a 100644
+index c9e5251..f893cef 100644
 --- a/src/include/storage/s_lock.h
 +++ b/src/include/storage/s_lock.h
 @@ -243,11 +243,12 @@ spin_delay(void)
diff --git a/meta-oe/recipes-dbs/postgresql/files/0002-Improve-reproducibility.patch b/meta-oe/recipes-dbs/postgresql/files/0002-Improve-reproducibility.patch
index 1fa3594b26..c1b0db3ce2 100644
--- a/meta-oe/recipes-dbs/postgresql/files/0002-Improve-reproducibility.patch
+++ b/meta-oe/recipes-dbs/postgresql/files/0002-Improve-reproducibility.patch
@@ -24,7 +24,7 @@  Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
  1 file changed, 3 deletions(-)
 
 diff --git a/src/common/Makefile b/src/common/Makefile
-index 2c720ca..c3d889c 100644
+index cd48a55..49e3c32 100644
 --- a/src/common/Makefile
 +++ b/src/common/Makefile
 @@ -31,9 +31,6 @@ include $(top_builddir)/src/Makefile.global
diff --git a/meta-oe/recipes-dbs/postgresql/files/0003-configure.ac-bypass-autoconf-2.69-version-check.patch b/meta-oe/recipes-dbs/postgresql/files/0003-configure.ac-bypass-autoconf-2.69-version-check.patch
index a874db39ff..4e69f6cf9c 100644
--- a/meta-oe/recipes-dbs/postgresql/files/0003-configure.ac-bypass-autoconf-2.69-version-check.patch
+++ b/meta-oe/recipes-dbs/postgresql/files/0003-configure.ac-bypass-autoconf-2.69-version-check.patch
@@ -14,17 +14,17 @@  Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
  1 file changed, 4 deletions(-)
 
 diff --git a/configure.ac b/configure.ac
-index 3081ad7..3a0fc92 100644
+index 85150e2..db975ae 100644
 --- a/configure.ac
 +++ b/configure.ac
 @@ -19,10 +19,6 @@ m4_pattern_forbid(^PGAC_)dnl to catch undefined macros
  
- AC_INIT([PostgreSQL], [18.6], [pgsql-bugs@lists.postgresql.org], [], [https://www.postgresql.org/])
+ AC_INIT([PostgreSQL], [19.0], [pgsql-bugs@lists.postgresql.org], [], [https://www.postgresql.org/])
  
 -m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required.
 -Untested combinations of 'autoconf' and PostgreSQL versions are not
 -recommended.  You can remove the check from 'configure.ac' but it is then
 -your responsibility whether the result works or not.])])
- AC_COPYRIGHT([Copyright (c) 1996-2025, PostgreSQL Global Development Group])
+ AC_COPYRIGHT([Copyright (c) 1996-2026, PostgreSQL Global Development Group])
  AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c])
  AC_CONFIG_AUX_DIR(config)
diff --git a/meta-oe/recipes-dbs/postgresql/files/0004-config_info.c-not-expose-build-info.patch b/meta-oe/recipes-dbs/postgresql/files/0004-config_info.c-not-expose-build-info.patch
index 25a9bff52c..1e85374375 100644
--- a/meta-oe/recipes-dbs/postgresql/files/0004-config_info.c-not-expose-build-info.patch
+++ b/meta-oe/recipes-dbs/postgresql/files/0004-config_info.c-not-expose-build-info.patch
@@ -15,10 +15,10 @@  Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
  2 files changed, 2 insertions(+), 70 deletions(-)
 
 diff --git a/configure.ac b/configure.ac
-index 3a0fc92..88b8f1c 100644
+index db975ae..6afd525 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -23,7 +23,7 @@ AC_COPYRIGHT([Copyright (c) 1996-2025, PostgreSQL Global Development Group])
+@@ -23,7 +23,7 @@ AC_COPYRIGHT([Copyright (c) 1996-2026, PostgreSQL Global Development Group])
  AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c])
  AC_CONFIG_AUX_DIR(config)
  AC_PREFIX_DEFAULT(/usr/local/pgsql)
@@ -28,7 +28,7 @@  index 3a0fc92..88b8f1c 100644
  [PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`]
  [PG_MINORVERSION=`expr "$PACKAGE_VERSION" : '.*\.\([0-9][0-9]*\)'`]
 diff --git a/src/common/config_info.c b/src/common/config_info.c
-index 113a8a6..b8f21c8 100644
+index 572ae3a..34a4cae 100644
 --- a/src/common/config_info.c
 +++ b/src/common/config_info.c
 @@ -38,7 +38,7 @@ get_configdata(const char *my_exec_path, size_t *configdata_len)
diff --git a/meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch b/meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch
index 4e9b1a27c2..1c9760055d 100644
--- a/meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch
+++ b/meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch
@@ -22,7 +22,7 @@  Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
  2 files changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/src/test/regress/expected/sysviews.out b/src/test/regress/expected/sysviews.out
-index 83228cf..c378012 100644
+index 132b56a..318c39b 100644
 --- a/src/test/regress/expected/sysviews.out
 +++ b/src/test/regress/expected/sysviews.out
 @@ -66,7 +66,7 @@ and c1.path[c2.level] = c2.path[c2.level];
@@ -35,7 +35,7 @@  index 83228cf..c378012 100644
  ----
   t
 diff --git a/src/test/regress/sql/sysviews.sql b/src/test/regress/sql/sysviews.sql
-index 66179f0..0f15661 100644
+index 507e400..bebb838 100644
 --- a/src/test/regress/sql/sysviews.sql
 +++ b/src/test/regress/sql/sysviews.sql
 @@ -43,7 +43,7 @@ where c2.name = 'CacheMemoryContext'
diff --git a/meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch b/meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch
index 0a1406bc8d..4ef5d7df45 100644
--- a/meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch
+++ b/meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch
@@ -21,10 +21,10 @@  Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/configure.ac b/configure.ac
-index 527437e..3081ad7 100644
+index 3ea316b..85150e2 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -2354,7 +2354,7 @@ Use --without-tcl to disable building PL/Tcl.])
+@@ -2432,7 +2432,7 @@ Use --without-tcl to disable building PL/Tcl.])
  fi
  
  # check for <perl.h>
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc
index 2deb35b065..21dbad30f3 100644
--- a/meta-oe/recipes-dbs/postgresql/postgresql.inc
+++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc
@@ -32,6 +32,8 @@  SRC_URI = "https://ftp.postgresql.org/pub/source/v${PV}/${BP}.tar.bz2 \
     file://run-ptest \
     file://pg_config \
 "
+UPSTREAM_CHECK_URI = "https://ftp.postgresql.org/pub/source/"
+UPSTREAM_CHECK_REGEX = "v(?P<pver>\d+(\.\d+)+)/"
 
 LEAD_SONAME = "libpq.so"
 
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql_18.6.bb b/meta-oe/recipes-dbs/postgresql/postgresql_19.0.bb
similarity index 87%
rename from meta-oe/recipes-dbs/postgresql/postgresql_18.6.bb
rename to meta-oe/recipes-dbs/postgresql/postgresql_19.0.bb
index 278d42ce3d..40631d8421 100644
--- a/meta-oe/recipes-dbs/postgresql/postgresql_18.6.bb
+++ b/meta-oe/recipes-dbs/postgresql/postgresql_19.0.bb
@@ -12,6 +12,6 @@  SRC_URI += "\
    file://0001-tcl.m4-Recognize-tclsh9.patch \
    "
 
-SRC_URI[sha256sum] = "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"
+SRC_URI[sha256sum] = "a89fd70efbad6a08c7dbed8d4872e3af30170d9e5ca9dc7906523be95b4e692d"
 
 CVE_STATUS[CVE-2017-8806] = "not-applicable-config: Doesn't apply to our configuration of postgresql so we can safely ignore it."