Skip to content
Permalink
Browse files
PostgreSQL provider: use bounding box column to compute extent
Speeds up extent computation when custom indexed bbox column is
given. References #43835
  • Loading branch information
strk committed Jun 22, 2021
1 parent bb8ebb9 commit c9ad0907d76d0512ca3faa01ecfd61e957a5764f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresprovider.cpp
@@ -3744,7 +3744,7 @@ QgsRectangle QgsPostgresProvider::extent() const
{
sql = QStringLiteral( "SELECT %1(%2%3) FROM %4%5" )
.arg( connectionRO()->majorVersion() < 2 ? "extent" : "st_extent",
quotedIdentifier( mGeometryColumn ),
quotedIdentifier( mBoundingBoxColumn ),
mSpatialColType == SctPcPatch ? "::geometry" : "",
mQuery,
filterWhereClause() );

0 comments on commit c9ad090

Please sign in to comment.