Skip to content

Commit d3ec6b5

Browse files
committedApr 5, 2019
postgres provider: use st_estimatedextent only when 'use estimated metadata' is enabled (fixes #21718)
(cherry picked from commit 95bd748)
1 parent 7ffc3ef commit d3ec6b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3237,7 +3237,7 @@ QgsRectangle QgsPostgresProvider::extent() const
32373237
QString ext;
32383238

32393239
// get the extents
3240-
if ( !mIsQuery && ( mUseEstimatedMetadata || mSqlWhereClause.isEmpty() ) )
3240+
if ( !mIsQuery && mUseEstimatedMetadata )
32413241
{
32423242
// do stats exists?
32433243
sql = QStringLiteral( "SELECT count(*) FROM pg_stats WHERE schemaname=%1 AND tablename=%2 AND attname=%3" )

0 commit comments

Comments
 (0)
Please sign in to comment.