diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..8b3e7d2 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,17 @@ +# Changelog + +## Unreleased + +### Added + +- Track PostgreSQL 19, starting with 19.0 (`REL_19_0`), in Linux and Windows + release builds and automatic upstream patch synchronization. +- Pin the PostgreSQL 19 `pg_hint_plan` overlay to `REL19_1_9_0`. +- Use `pg_cron` v1.6.8 for PostgreSQL 19 compatibility. +- Use `pgvector` v0.8.7 for PostgreSQL 19 builds. +- Document PostgreSQL 19 builds, release dispatch, and archive names. + +### Fixed + +- Pass an explicit Windows `nm.exe` path to configure for PostgreSQL 19's + libpq sanity check under native UCRT Perl. diff --git a/README.md b/README.md index 3974595..978bfa7 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,9 @@ This repository builds portable, relocatable PostgreSQL release archives for: - `unknown-linux_x86_64` — CentOS 7+ / glibc 2.17+ (built on manylinux2014) - `windows_x86_64` — Windows 10+ (MSYS2/UCRT64 MinGW-w64) +Tracked PostgreSQL majors are **16, 17, 18, and 19**. PostgreSQL 19 starts at +**19.0** (`REL_19_0`); upstream sync discovers subsequent stable patch releases. + ## Packaging Contract The base package contains upstream PostgreSQL plus all contrib extensions (pgcrypto, postgres_fdw, hstore, etc.). @@ -88,6 +91,26 @@ Build for an explicit target: scripts/ci/build_portable_postgresql.sh --major 17 --target unknown-linux_x86_64 ``` +## PostgreSQL 19 Deployment + +Build PostgreSQL 19 locally with `scripts/run_local_build.sh --major 19`. +The release workflow builds Linux and Windows archives for every tracked major. +To publish only PostgreSQL 19 from a ref containing its release configuration: + +```bash +gh workflow run release-and-publish.yml --ref main --field majors=19 --field publish=true +``` + +The initial release tag is `postgresql-19.0`. Base archives are named +`postgresql-portable-19.0-unknown-linux_x86_64.tar.gz` and +`postgresql-portable-19.0-windows_x86_64.zip`, with separate extension overlays +and SHA256 checksum files. The PostgreSQL 19 `pg_hint_plan` overlay uses +`REL19_1_9_0`, `pg_cron` uses `v1.6.8`, and `pgvector` uses `v0.8.7`; +existing platform exclusions still apply. + +Windows builds pass the explicit `nm.exe` path to configure so PostgreSQL 19's +libpq sanity check can validate the tool with native UCRT Perl. + ## Automatic Upstream Sync New PostgreSQL patch releases are picked up automatically: diff --git a/ci/postgresql-release-config.json b/ci/postgresql-release-config.json index e93346d..26c89af 100644 --- a/ci/postgresql-release-config.json +++ b/ci/postgresql-release-config.json @@ -3,7 +3,8 @@ "tracked_majors": [ "16", "17", - "18" + "18", + "19" ], "upstream_git_repo": "https://github.com/postgres/postgres.git", "source_tarball_url_template": "https://ftp.postgresql.org/pub/source/v{version}/postgresql-{version}.tar.gz", @@ -19,6 +20,10 @@ "18": { "tag": "REL_18_7", "version": "18.7" + }, + "19": { + "tag": "REL_19_0", + "version": "19.0" } } }, @@ -79,6 +84,9 @@ "pg_cron": { "repo": "https://github.com/citusdata/pg_cron.git", "ref": "v1.6.7", + "refs": { + "19": "v1.6.8" + }, "skip_targets": [ "windows_x86_64" ], @@ -93,7 +101,8 @@ "refs": { "16": "REL16_1_6_2", "17": "REL17_1_7_1", - "18": "REL18_1_8_0" + "18": "REL18_1_8_0", + "19": "REL19_1_9_0" }, "notes": [ "Requires shared_preload_libraries = 'pg_hint_plan'." @@ -109,6 +118,9 @@ "pgvector": { "repo": "https://github.com/pgvector/pgvector.git", "ref": "v0.8.1", + "refs": { + "19": "v0.8.7" + }, "sql_name": "vector", "notes": [ "Enable with CREATE EXTENSION vector." diff --git a/scripts/ci/build_portable_postgresql.sh b/scripts/ci/build_portable_postgresql.sh index 1dbfb66..2dbeb6d 100755 --- a/scripts/ci/build_portable_postgresql.sh +++ b/scripts/ci/build_portable_postgresql.sh @@ -296,12 +296,23 @@ configure_postgresql() { pushd "$build_dir" >/dev/null if [[ "${TARGET}" == *windows* ]]; then + # PostgreSQL 19's libpq_check.pl tests -x on NM before its Windows skip. + # Native UCRT Perl needs the actual .exe filename, rather than MSYS2's + # extensionless command path. Use a Windows path for that native file test. + local nm_path + nm_path="$(command -v nm)" + if [[ -f "${nm_path}.exe" ]]; then + nm_path="${nm_path}.exe" + fi + nm_path="$(cygpath -m "$nm_path")" + perl -e 'die "NM is not executable: $ARGV[0]\n" unless -x $ARGV[0]' "$nm_path" + # MSYS2 normally rewrites path-like arguments for native programs. PostgreSQL # records configure arguments in src/common/config_info.c, so a converted # --prefix=D:\... value becomes invalid C string content (for example, \uc). # Exclude only --prefix from conversion; keep conversion enabled for native # build tools such as UCRT Perl that need Windows paths for file arguments. - MSYS2_ARG_CONV_EXCL="--prefix=" \ + NM="$nm_path" MSYS2_ARG_CONV_EXCL="--prefix=" \ "${source_dir}/configure" --prefix="$install_root" ${configure_flags[@]+"${configure_flags[@]}"} else "${source_dir}/configure" --prefix="$install_root" ${configure_flags[@]+"${configure_flags[@]}"}