diff --git a/_multibuild b/_multibuild
deleted file mode 100644
index 9317e4b..0000000
--- a/_multibuild
+++ /dev/null
@@ -1,3 +0,0 @@
-
- mini
-
diff --git a/postgresql-16.3.tar.bz2 b/postgresql-16.3.tar.bz2
deleted file mode 100644
index 6aef66a..0000000
--- a/postgresql-16.3.tar.bz2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585
-size 24737644
diff --git a/postgresql-16.3.tar.bz2.sha256 b/postgresql-16.3.tar.bz2.sha256
deleted file mode 100644
index 318f3a6..0000000
--- a/postgresql-16.3.tar.bz2.sha256
+++ /dev/null
@@ -1 +0,0 @@
-331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585 postgresql-16.3.tar.bz2
diff --git a/postgresql-16.4.tar.bz2 b/postgresql-16.4.tar.bz2
new file mode 100644
index 0000000..6618402
--- /dev/null
+++ b/postgresql-16.4.tar.bz2
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:971766d645aa73e93b9ef4e3be44201b4f45b5477095b049125403f9f3386d6f
+size 24765786
diff --git a/postgresql-16.4.tar.bz2.sha256 b/postgresql-16.4.tar.bz2.sha256
new file mode 100644
index 0000000..2127f93
--- /dev/null
+++ b/postgresql-16.4.tar.bz2.sha256
@@ -0,0 +1 @@
+971766d645aa73e93b9ef4e3be44201b4f45b5477095b049125403f9f3386d6f postgresql-16.4.tar.bz2
diff --git a/postgresql16.changes b/postgresql16.changes
index 52ced90..d8d1177 100644
--- a/postgresql16.changes
+++ b/postgresql16.changes
@@ -1,3 +1,18 @@
+-------------------------------------------------------------------
+Thu Sep 19 11:21:38 UTC 2024 - Reinhard Max
+
+- Don't build the libs and mini flavor anymore to hand over to
+ PostgreSQL 17.
+
+-------------------------------------------------------------------
+Sat Aug 10 14:08:50 UTC 2024 - Marcus Rueckert
+
+- Upgrade to 16.4 (bsc#1229013):
+ * bsc#1229013, CVE-2024-7348 PostgreSQL relation replacement
+ during pg_dump executes arbitrary SQL
+ * https://www.postgresql.org/about/news/postgresql-164-158-1413-1316-1220-and-17-beta-3-released-2910/
+ * https://www.postgresql.org/docs/release/16.4/
+
-------------------------------------------------------------------
Wed May 8 08:28:48 UTC 2024 - Reinhard Max
diff --git a/postgresql16.spec b/postgresql16.spec
index e3a5de1..d6eaf58 100644
--- a/postgresql16.spec
+++ b/postgresql16.spec
@@ -16,9 +16,9 @@
#
-%define pgversion 16.3
+%define pgversion 16.4
%define pgmajor 16
-%define buildlibs 1
+%define buildlibs 0
%define tarversion %{pgversion}
%define latest_supported_llvm_ver 18
@@ -60,7 +60,7 @@ Name: %pgname
%endif
%if %pgmajor >= 17
-%bcond_with dreived
+%bcond_with derived
%else
%bcond_without derived
%endif