[SCM] PostGIS branch master updated. 3.4.0rc1-928-g22d74f7e7

git at osgeo.org git at osgeo.org
Fri Feb 16 02:55:13 PST 2024


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  22d74f7e74f018f6259976157a5ff15ef71c74f4 (commit)
      from  88b28ad0c62d2509b29ab631667efb4c472e9451 (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 22d74f7e74f018f6259976157a5ff15ef71c74f4
Author: Sandro Santilli <strk at kbt.io>
Date:   Fri Feb 16 11:53:37 2024 +0100

    Directly query edge_data instead of edge view from backend callbacks
    
    computeFaceMBR and getEdgeWithinBox2D were still querying
    the edge view, moved them to query edge_data for consistency
    (and very small performance improvement).

diff --git a/topology/postgis_topology.c b/topology/postgis_topology.c
index 134dc8e28..21d619047 100644
--- a/topology/postgis_topology.c
+++ b/topology/postgis_topology.c
@@ -3087,7 +3087,7 @@ cb_computeFaceMBR(const LWT_BE_TOPOLOGY *topo, LWT_ELEMID face)
     sql,
     "SELECT ST_BoundingDiagonal(ST_Collect("
     "ST_BoundingDiagonal(geom, true)"
-    "), true) FROM \"%s\".edge "
+    "), true) FROM \"%s\".edge_data "
     "WHERE left_face != right_face AND "
     "( left_face = %" LWTFMT_ELEMID
     " OR right_face = %" LWTFMT_ELEMID
@@ -3342,7 +3342,7 @@ cb_getEdgeWithinBox2D(const LWT_BE_TOPOLOGY *topo, const GBOX *box, uint64_t *nu
     appendStringInfoString(sql, "SELECT ");
     addEdgeFields(sql, fields, 0);
   }
-  appendStringInfo(sql, " FROM \"%s\".edge", topo->name);
+  appendStringInfo(sql, " FROM \"%s\".edge_data", topo->name);
 
   if ( box )
   {

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

Summary of changes:
 topology/postgis_topology.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list