From 1ec38940e5c6f09a4c1d17a46d839a881c4f2db7 Mon Sep 17 00:00:00 2001 From: Lukas Fittl Date: Mon, 8 Jan 2024 17:55:33 -0800 Subject: [PATCH] Release 16-5.1.0 --- CHANGELOG.md | 18 ++++++++++++++++++ Makefile | 2 +- README.md | 6 ++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f486f35..e9455051 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,24 @@ All versions are tagged by the major Postgres version, plus an individual semver for this library itself. +## 16-5.1.0 2024-01-08 + +* Add support for compiling on Windows + - In order to build on Windows when using MSVC, use the new "Makefile.msvc" + with nmake, or directly compile all .c files in the src folder into a library + - If compiling directly, add src/postgres/include/port/win32 to the include path, + and when using MSVC also add src/postgres/include/port/win32_msvc +* Add support for compiling on 32-bit systems + - The relevant code is enabled at compile time by checking the pointer + size (__SIZEOF_POINTER__ == 4) +* Move internal headers and included .c files to src/include folder + - This avoids having any .c files in the top-level src/ folder that can't + be directly compiled, and thus lets us simplify the logic for defining + which source units are to be compiled. +* Remove strnlen fallback implementation +* Avoid use of mmap, asprintf and strndup to improve portability +* Improve compatibility with non-POSIX systems and C89 compilers + ## 16-5.0.0 2023-12-22 * Update to Postgres 16.1 diff --git a/Makefile b/Makefile index 7893c50c..618badec 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ PG_VERSION_MAJOR = $(call word-dot,$(PG_VERSION),1) PG_VERSION_NUM = 160001 PROTOC_VERSION = 25.1 -VERSION = 5.0.0 +VERSION = 5.1.0 VERSION_MAJOR = $(call word-dot,$(VERSION),1) VERSION_MINOR = $(call word-dot,$(VERSION),2) VERSION_PATCH = $(call word-dot,$(VERSION),3) diff --git a/README.md b/README.md index d3a330ca..c2de4cd8 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,12 @@ Due to compiling parts of PostgreSQL, running `make` will take a bit. Expect up For a production build, its best to use a specific git tag (see CHANGELOG). +When compiling on Windows with Visual Studio, instead use `nmake` with the `Makefile.msvc`: + +```sh +nmake /F Makefile.msvc +``` + ## Usage: Parsing a query