[postgis-tickets] [SCM] PostGIS branch main updated. 3.1.0rc1-366-g4481969
git at osgeo.org
git at osgeo.org
Wed Jul 28 13:41: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, main has been updated
via 44819691f4a0f8874e6b0cae1893d457c927edfd (commit)
from 0981555c35abb4a0c6984e302f399cea95ecc64b (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 44819691f4a0f8874e6b0cae1893d457c927edfd
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 4d3995e..d41f480 100644
--- a/postgis/gserialized_estimate.c
+++ b/postgis/gserialized_estimate.c
@@ -2580,6 +2580,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:
postgis/gserialized_estimate.c | 3 +++
1 file changed, 3 insertions(+)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list