[postgis-tickets] [SCM] PostGIS branch stable-3.0 updated. 3.0.3-27-g7031983

git at osgeo.org git at osgeo.org
Wed Jul 28 13:44:21 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.0 has been updated
       via  7031983603c0b173b0ec629a27db34b9ff70f456 (commit)
       via  1ffd49dacf5c24c8b32d02553c119b56b5d12a97 (commit)
      from  e4c3f5e7de1ec89f9c783a27ed818a92487b1b8f (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 7031983603c0b173b0ec629a27db34b9ff70f456
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Jul 28 13:44:15 2021 -0700

    Add NEWS for #4917

diff --git a/NEWS b/NEWS
index d3aa00a..2fbae1b 100644
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,7 @@ PostGIS 3.0.4dev
   - #4918, Fix rare crash in st_minpossiblevalue() (Paul Ramsey)
   - #4949, Swapped coordinates for N/E planar systems (Paul Ramsey)
   - #4326, Fix CircularPolygon area calculation (Paul Ramsey)
+  - #4917, Fix crasher with '-' regclass (Paul Ramsey)
 
 
 PostGIS 3.0.3

commit 1ffd49dacf5c24c8b32d02553c119b56b5d12a97
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 6f55494..aaf1976 100644
--- a/postgis/gserialized_estimate.c
+++ b/postgis/gserialized_estimate.c
@@ -2570,6 +2570,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(fcinfo);
 

-----------------------------------------------------------------------

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