diff --git a/createas.c b/createas.c index ee26442..79bb8d1 100644 --- a/createas.c +++ b/createas.c @@ -1078,7 +1078,7 @@ CreateIndexOnIMMV(Query *query, Relation matviewRel, bool is_create) /* - * For aggregate withoug GROUP BY, we do not need to create an index + * For aggregate without GROUP BY, we do not need to create an index * because the view has only one row. */ if (query->hasAggs && query->groupClause == NIL) diff --git a/expected/pg_ivm.out b/expected/pg_ivm.out index 709e943..3e74c52 100644 --- a/expected/pg_ivm.out +++ b/expected/pg_ivm.out @@ -286,9 +286,6 @@ ROLLBACK; -- support aggregate functions without GROUP clause BEGIN; SELECT create_immv('mv_ivm_group', 'SELECT SUM(j), COUNT(j), AVG(j) FROM mv_base_a'); -NOTICE: could not create an index on immv "mv_ivm_group" automatically -DETAIL: This target list does not have all the primary key columns, or this view does not contain GROUP BY or DISTINCT clause. -HINT: Create an index on the immv for efficient incremental maintenance. create_immv ------------- 1 @@ -318,9 +315,6 @@ ROLLBACK; -- TRUNCATE a base table in aggregate views without GROUP clause BEGIN; SELECT create_immv('mv_ivm_group', 'SELECT SUM(j), COUNT(j), AVG(j) FROM mv_base_a'); -NOTICE: could not create an index on immv "mv_ivm_group" automatically -DETAIL: This target list does not have all the primary key columns, or this view does not contain GROUP BY or DISTINCT clause. -HINT: Create an index on the immv for efficient incremental maintenance. create_immv ------------- 1 @@ -437,9 +431,6 @@ ROLLBACK; -- support MIN(), MAX() aggregate functions without GROUP clause BEGIN; SELECT create_immv('mv_ivm_min_max', 'SELECT MIN(j), MAX(j) FROM mv_base_a'); -NOTICE: could not create an index on immv "mv_ivm_min_max" automatically -DETAIL: This target list does not have all the primary key columns, or this view does not contain GROUP BY or DISTINCT clause. -HINT: Create an index on the immv for efficient incremental maintenance. create_immv ------------- 1