[SCM] PostGIS branch master updated. 3.6.0rc2-248-g5fa91e48f
git at osgeo.org
git at osgeo.org
Thu Dec 4 00:56:22 PST 2025
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, master has been updated
via 5fa91e48f65602d1f99c8164e143153a594109e9 (commit)
from a92fadc9c901106a39d5e03220d199bc16f13a31 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5fa91e48f65602d1f99c8164e143153a594109e9
Author: Regina Obe <lr at pcorp.us>
Date: Thu Dec 4 03:28:45 2025 -0500
Remove support for PostgreSQL 12 and 13
Closes #6024
diff --git a/NEWS b/NEWS
index 3d974e88c..a32a41abc 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ xxxx/xx/xx
- #5688, [topology] topology building functions now interpret tolerance 0
(old default) to really mean 0 and want -1 (new default) to mean
"use topology precision" (Sandro Santilli)
+ - #6024, Remove support for PostgreSQL 12 and 13 (Regina Obe)
* New Features *
diff --git a/configure.ac b/configure.ac
index 29f66a38c..203740046 100644
--- a/configure.ac
+++ b/configure.ac
@@ -578,9 +578,9 @@ if test "x$SUPPORT_POSTGRESQL" = "xyes"; then dnl {
PGSQL_SHAREDIR=`"$PG_CONFIG" --sharedir`
AC_MSG_RESULT([checking PostgreSQL version... $PGSQL_FULL_VERSION])
- dnl Ensure that we are using PostgreSQL >= 12
- if test $POSTGIS_PGSQL_VERSION -lt 120; then
- AC_MSG_ERROR([PostGIS requires PostgreSQL >= 12])
+ dnl Ensure that we are using PostgreSQL >= 14
+ if test $POSTGIS_PGSQL_VERSION -lt 140; then
+ AC_MSG_ERROR([PostGIS requires PostgreSQL >= 14])
fi
HAVE_SPGIST=yes
diff --git a/doc/developer.md b/doc/developer.md
index f3518021c..1a1fcf33a 100644
--- a/doc/developer.md
+++ b/doc/developer.md
@@ -363,7 +363,18 @@ run. This avoids the traps described in <https://trac.osgeo.org/postgis/ticket/5
while keeping the CI account unprivileged.
-
+## Removing support for versions of PostgreSQL
+
+* Edit configure.ac, starting at: replace 14 with minimum version allowed
+ `dnl Ensure that we are using PostgreSQL >= 14`
+
+* Remove all PostgreSQL guards in files for versions lower than minimum supported
+ You can find these by looking for `POSTGIS_PGSQL_VERSION`, might also find older syntax
+ `PG_VERSION_NUM`
+
+* Edit doc/postgis.xml and change entity `min_postgres_version` to new minimum version
+
+* Add to NEWS Breaking Changes section, your removal of said versions
diff --git a/doc/postgis.xml b/doc/postgis.xml
index d4b678125..8cd88a62b 100644
--- a/doc/postgis.xml
+++ b/doc/postgis.xml
@@ -15,7 +15,7 @@
<!ENTITY last_proj_release_version "9.2.1">
<!ENTITY last_geos_release_version "3.14.0">
<!ENTITY min_geos_version "3.8.0">
-<!ENTITY min_postgres_version "12">
+<!ENTITY min_postgres_version "14">
<!ENTITY max_postgres_version "18">
<!ENTITY introduction SYSTEM "introduction.xml">
diff --git a/libpgcommon/lwgeom_cache.c b/libpgcommon/lwgeom_cache.c
index 95b591504..5e4d9207d 100644
--- a/libpgcommon/lwgeom_cache.c
+++ b/libpgcommon/lwgeom_cache.c
@@ -20,11 +20,7 @@
#include "../postgis_config.h"
/* Include for VARATT_EXTERNAL_GET_POINTER */
-#if POSTGIS_PGSQL_VERSION < 130
-#include "access/tuptoaster.h"
-#else
#include "access/detoast.h"
-#endif
#include "lwgeom_cache.h"
diff --git a/postgis/gserialized_estimate.c b/postgis/gserialized_estimate.c
index d616cbeba..7f5e6d89c 100644
--- a/postgis/gserialized_estimate.c
+++ b/postgis/gserialized_estimate.c
@@ -65,11 +65,7 @@ dimensionality cases. (2D geometry) &&& (3D column), etc.
#include "access/gist.h"
#include "access/gist_private.h"
#include "access/gistscan.h"
-#if PG_VERSION_NUM < 130000
-#include "access/tuptoaster.h" /* For toast_raw_datum_size */
-#else
#include "access/detoast.h" /* For toast_raw_datum_size */
-#endif
#include "utils/datum.h"
#include "access/heapam.h"
#include "catalog/index.h"
diff --git a/postgis/lwgeom_out_geojson.c b/postgis/lwgeom_out_geojson.c
index 288b0c89c..5e0a6f589 100644
--- a/postgis/lwgeom_out_geojson.c
+++ b/postgis/lwgeom_out_geojson.c
@@ -20,11 +20,7 @@
#include "utils/lsyscache.h"
#include "utils/json.h"
#include "utils/hsearch.h"
-#if POSTGIS_PGSQL_VERSION < 130
-#include "utils/jsonapi.h"
-#else
#include "common/jsonapi.h"
-#endif
#include "utils/typcache.h"
#include "utils/syscache.h"
-----------------------------------------------------------------------
Summary of changes:
NEWS | 1 +
configure.ac | 6 +++---
doc/developer.md | 11 +++++++++++
doc/postgis.xml | 2 +-
libpgcommon/lwgeom_cache.c | 4 ----
postgis/gserialized_estimate.c | 4 ----
postgis/lwgeom_out_geojson.c | 4 ----
7 files changed, 16 insertions(+), 16 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list