Commit Graph

14 Commits

Author SHA1 Message Date
Daniel Golle 6bfc91653c postgresql: update to 18.3
Major version update from 17.5 to 18.3.

PostgreSQL 18 (released September 2025) brings:
 * Asynchronous I/O (AIO) for shared buffers, sequential scans,
   bitmap heap scans and pg_prewarm.
 * Skip scans for B-tree indexes.
 * Performance improvements for partition pruning.
 * Logical replication: improved replication of generated columns,
   protocol version 5.
 * Native UUIDv7 support.
 * Larger I/O for sequential and parallel scans.
 * Concurrent reindex of partitioned tables.
 * pg_dump: --filter for selective dumps.
 * Numerous SQL/JSON improvements.
 * New built-in role pg_signal_autovacuum_worker.

18.3 is the third maintenance release with bug fixes since 18.0.

Drop the now obsolete pg_config_ext.h copy in Build/InstallDev: this
header has been removed upstream in PostgreSQL 18.

Link: https://www.postgresql.org/docs/release/18.0/
Link: https://www.postgresql.org/docs/release/18.3/
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-05-09 19:10:07 +03:00
Daniel Golle 9ec157ee98 postgresql: update to version 17.2
Update PostgreSQL to new (major) version 17.2
See https://www.postgresql.org/docs/release/17.2/ for more details.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-02-10 11:47:32 +00:00
Hannu Nyman 3dbefd299a Revert "postgresql: update to version 16.3"
This reverts commit 6a46887e60
from PR https://github.com/openwrt/packages/pull/24327

Postgresql version upgrade fails in buildbot for all targets
with error like:

[236/1612] Generating src/fe_utils/psqlscan with a custom command
FAILED: src/fe_utils/psqlscan.c
/builder/shared-workdir/build/sdk/staging_dir/host/bin/python3 ../src/tools/pgflex --builddir . --srcdir .. --privatedir src/fe_utils/psqlscan.c.p --flex /builder/shared-workdir/build/sdk/staging_dir/host/bin/flex --perl /builder/shared-workdir/build/sdk/staging_dir/host/bin/perl -i ../src/fe_utils/psqlscan.l -o src/fe_utils/psqlscan.c --no-backup --fix-warnings -- -Cfe -p -p
flex: fatal internal error, exec of /builder/shared-workdir/build/staging_dir/host/bin/m4 failed
[237/1612] Compiling C object src/interfaces/libpq/libpq.so.5.16.p/pqexpbuffer.c.o
ninja: build stopped: subcommand failed.
make[3]: *** [Makefile:264: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a53_musl/postgresql-16.3/.built] Error 1

Several dozen packages depend upon postgresql, so the fallout is
rather large. Let's revert the upgrade until a fix is found.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2024-07-09 13:09:18 +03:00
Daniel Golle 6a46887e60 postgresql: update to version 16.3
Switch to new major version 16.
Use meson to build for target, however, old autotools-style configure is
needed to clean the source directory before being able to run meson, and
host build of the timezone compiler ('zic') also still requires using the
old build system.

See also https://www.postgresql.org/docs/16/release-16.html

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-07-03 02:32:40 +01:00
Daniel Golle bb300f0635 postgresql: update to version 15.1
https://www.postgresql.org/docs/release/15.0/
https://www.postgresql.org/docs/release/15.1/

A dump/restore using pg_dumpall or use of pg_upgrade or logical
replication is required for those wishing to migrate data from any
previous release.

Do not backport to release branch which should remain on version 14.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-01-14 01:47:56 +00:00
Daniel Golle ead096d6dd postgresql: update to version 14.5
Release date: 2022-08-11
Adresses CVE-2022-2625.
For more details, please see the release notes[1].

[1]: https://www.postgresql.org/docs/release/14.5/
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-07 22:56:35 +01:00
Daniel Golle 30dabb07ae postgresql: update to version 14.0
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-10-09 17:02:37 +01:00
Daniel Golle e5fc9bedcc postgresql: update to version 13.0
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-09-27 22:51:59 +01:00
Daniel Golle 98b09ec89e postgresql: update to version 12.4
Fixes CVE-2020-14349 and CVE-2020-14350.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-08-30 18:54:48 +01:00
Sebastian Kemper 00882ebb36 postgresql: fix pkg-config file
Currently the pc file has includedir hard coded to "/usr/include" and
libdir to "/usr/lib". This commit changes this so they can be controlled
via the "prefix" variable.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-03-05 22:41:21 +01:00
Daniel Golle 04e71645c7 postgresql: update to version 9.6.3
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-01 18:13:23 +02:00
Daniel Golle 2135991f51 postgresql: fix build and improve packaging
* make sure contrib stuff gets built and installed
* refresh patches and improve Makefile while at it

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-19 20:49:40 +02:00
Daniel Golle c14f2ac6da postgresql: move some binaries to pgsql-cli-extra
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-09-28 14:45:27 +02:00
Daniel Golle 63120640e6 postgresql: update to version 9.5.4 and major rework
* convert package build to use host-build for ecpg, pg_config and zic
 * introduce /lib/functions/postgresql.sh to be used by packages
   requiring a postgres database to exist as well as postgres' init
 * no longer require shadow-su, patch pg_ctl to setuid() ifself instead
 * auto-create database directory if there is enough free space
 * auto-create databases configured in UCI
 * remove some dead uci config options
 * grab maintainership

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-09-23 20:03:05 +02:00