[postgis-tickets] [SCM] PostGIS branch stable-3.1 updated. 3.1.3-13-g8cd3038
git at osgeo.org
git at osgeo.org
Wed Jul 28 13:42:43 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 8cd3038e55fb2c36d53d617871574b1eea71db98 (commit)
via 4580ed12feb7eeeefc1f67257c5f466aced855c6 (commit)
from 74b40a739ed0cb3afd7de742801bb6ea1e295e89 (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 8cd3038e55fb2c36d53d617871574b1eea71db98
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Wed Jul 28 13:42:28 2021 -0700
NEWS entry for #4917
diff --git a/NEWS b/NEWS
index 753b01d..6d67ee4 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ PostGIS 3.1.4dev
- #4949, Swapped coordinates for N/E planar systems (Paul Ramsey)
- GI617, Fix typo in setting of INVMINDIST (Charles Karney)
- #4326, Fix CircularPolygon area calculation (Paul Ramsey)
+ - #4917, Fix crasher with '-' regclass (Paul Ramsey)
PostGIS 3.1.3
commit 4580ed12feb7eeeefc1f67257c5f466aced855c6
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Wed Jul 28 13:41:13 2021 -0700
Catch special "no oid" regclass before passing in to index search, references #4917
diff --git a/postgis/gserialized_estimate.c b/postgis/gserialized_estimate.c
index b867ed7..0ca42a3 100644
--- a/postgis/gserialized_estimate.c
+++ b/postgis/gserialized_estimate.c
@@ -2576,6 +2576,9 @@ Datum _postgis_gserialized_index_extent(PG_FUNCTION_ARGS)
text *col = PG_GETARG_TEXT_P(1);
Oid idx_oid;
+ if(!tbl_oid)
+ PG_RETURN_NULL();
+
/* We need to initialize the internal cache to access it later via postgis_oid() */
postgis_initialize_cache();
-----------------------------------------------------------------------
Summary of changes:
NEWS | 1 +
postgis/gserialized_estimate.c | 3 +++
2 files changed, 4 insertions(+)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list