diff --git a/src/pgstac/migrations/pgstac.0.8.5-unreleased.sql b/src/pgstac/migrations/pgstac.0.8.5-unreleased.sql index 7c1dea7f..18bccb41 100644 --- a/src/pgstac/migrations/pgstac.0.8.5-unreleased.sql +++ b/src/pgstac/migrations/pgstac.0.8.5-unreleased.sql @@ -753,9 +753,6 @@ BEGIN search.lastused := now(); search.usecount := 1; - -- Calculate statistics for the where statement - PERFORM where_stats(search._where, updatestats, _search->'conf'); - -- If we are in read only mode, directly return search IF ro THEN RETURN search; diff --git a/src/pgstac/migrations/pgstac.unreleased.sql b/src/pgstac/migrations/pgstac.unreleased.sql index 524437cf..e81009da 100644 --- a/src/pgstac/migrations/pgstac.unreleased.sql +++ b/src/pgstac/migrations/pgstac.unreleased.sql @@ -3548,9 +3548,6 @@ BEGIN search.lastused := now(); search.usecount := 1; - -- Calculate statistics for the where statement - PERFORM where_stats(search._where, updatestats, _search->'conf'); - -- If we are in read only mode, directly return search IF ro THEN RETURN search; diff --git a/src/pgstac/sql/004_search.sql b/src/pgstac/sql/004_search.sql index 837ecb66..40e7af04 100644 --- a/src/pgstac/sql/004_search.sql +++ b/src/pgstac/sql/004_search.sql @@ -635,9 +635,6 @@ BEGIN search.lastused := now(); search.usecount := 1; - -- Calculate statistics for the where statement - PERFORM where_stats(search._where, updatestats, _search->'conf'); - -- If we are in read only mode, directly return search IF ro THEN RETURN search;