[postgis-tickets] [SCM] PostGIS branch stable-3.1 updated. 3.1.1-35-g77f5ce4
git at osgeo.org
git at osgeo.org
Thu May 20 13:08:46 PDT 2021
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, stable-3.1 has been updated
via 77f5ce422e848e9a2d8c9400cede8ddd0265f949 (commit)
from 695dc142e3fc9a866b630a0a5911cd429ddc022a (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 77f5ce422e848e9a2d8c9400cede8ddd0265f949
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu May 20 12:59:09 2021 -0700
Add Pg14 build support to 3.1 branch. References #4845
diff --git a/NEWS b/NEWS
index 1e25d81..40e3778 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,7 @@ PostGIS 3.1.2
- #4877, mingw64 PostGIS / PostgreSQL 14 compile (Regina Obe, Tom Lane)
- #4838, Update to support Tiger 2020 (Regina Obe)
- #4890, Change Proj cache lifetime to last as long as connection (Paul Ramsey)
+ - #4845, Add Pg14 build support (Paul Ramsey)
PostGIS 3.1.1
diff --git a/postgis/gserialized_supportfn.c b/postgis/gserialized_supportfn.c
index 986e347..613a99d 100644
--- a/postgis/gserialized_supportfn.c
+++ b/postgis/gserialized_supportfn.c
@@ -417,7 +417,12 @@ Datum postgis_index_supportfn(PG_FUNCTION_ARGS)
* The comparison expression has to be a pseudo constant,
* (not volatile or dependent on the target index table)
*/
+
+#if POSTGIS_PGSQL_VERSION >= 140
+ if (!is_pseudo_constant_for_index(req->root, (Node*)expandexpr, req->index))
+#else
if (!is_pseudo_constant_for_index((Node*)expandexpr, req->index))
+#endif
PG_RETURN_POINTER((Node*)NULL);
/* OK, we can make an index expression */
@@ -440,7 +445,12 @@ Datum postgis_index_supportfn(PG_FUNCTION_ARGS)
* The comparison expression has to be a pseudoconstant
* (not volatile or dependent on the target index's table)
*/
+#if POSTGIS_PGSQL_VERSION >= 140
+ if (!is_pseudo_constant_for_index(req->root, rightarg, req->index))
+#else
if (!is_pseudo_constant_for_index(rightarg, req->index))
+#endif
+
PG_RETURN_POINTER((Node*)NULL);
/*
-----------------------------------------------------------------------
Summary of changes:
NEWS | 1 +
postgis/gserialized_supportfn.c | 10 ++++++++++
2 files changed, 11 insertions(+)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list