Skip to content

Commit eab5195

Browse files
authored
fix some typos (sraoss#129)
1 parent 437b2d2 commit eab5195

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

createas.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ ExecCreateImmv(ParseState *pstate, CreateTableAsStmt *stmt,
295295
/* Create an index on incremental maintainable materialized view, if possible */
296296
CreateIndexOnIMMV(query, matviewRel);
297297

298-
/* Create triggers to prevent IMMV from beeing changed */
298+
/* Create triggers to prevent IMMV from being changed */
299299
CreateChangePreventTrigger(address.objectId);
300300

301301
table_close(matviewRel, NoLock);
@@ -332,7 +332,7 @@ rewriteQueryForIMMV(Query *query, List *colNames)
332332
FuncCall *fn;
333333

334334
/*
335-
* Check the length of colunm name list not to override names of
335+
* Check the length of column name list not to override names of
336336
* additional columns
337337
*/
338338
if (list_length(colNames) > list_length(query->targetList))
@@ -1001,7 +1001,7 @@ check_ivm_restriction_walker(Node *node, check_ivm_restriction_context *context)
10011001
errmsg("WITH query name %s is not supported on incrementally maintainable materialized view", cte->ctename)));
10021002

10031003
/*
1004-
* When a table in a unreferenced CTE is TRUNCATEd, the contents of the
1004+
* When a table in an unreferenced CTE is TRUNCATEd, the contents of the
10051005
* IMMV is not affected so it must not be truncated. For confirming it
10061006
* at the maintenance time, we have to check if the modified table used
10071007
* in a CTE is actually referenced. Although it would be possible, we
@@ -1043,7 +1043,7 @@ check_ivm_restriction_walker(Node *node, check_ivm_restriction_context *context)
10431043
check_ivm_restriction_walker((Node *) from->fromlist, context);
10441044

10451045
/*
1046-
* EXIEST is allowed directly under FROM clause
1046+
* EXIST is allowed directly under FROM clause
10471047
*/
10481048
context->allow_exists = true;
10491049
check_ivm_restriction_walker(from->quals, context);
@@ -1115,7 +1115,7 @@ check_ivm_restriction_walker(Node *node, check_ivm_restriction_context *context)
11151115
Node *opnode = (Node *) lfirst(lc);
11161116

11171117
/*
1118-
* EXIEST is allowed under AND expression only if it is
1118+
* EXIST is allowed under AND expression only if it is
11191119
* directly under WHERE.
11201120
*/
11211121
if (allow_exists)
@@ -1354,8 +1354,8 @@ check_aggregate_supports_ivm(Oid aggfnoid)
13541354
* Create a unique index on incremental maintainable materialized view.
13551355
* If the view definition query has a GROUP BY clause, the index is created
13561356
* on the columns of GROUP BY expressions. Otherwise, if the view contains
1357-
* all primary key attritubes of its base tables in the target list, the index
1358-
* is created on these attritubes. In other cases, no index is created.
1357+
* all primary key attributes of its base tables in the target list, the index
1358+
* is created on these attributes. In other cases, no index is created.
13591359
*/
13601360
void
13611361
CreateIndexOnIMMV(Query *query, Relation matviewRel)
@@ -1541,7 +1541,7 @@ CreateIndexOnIMMV(Query *query, Relation matviewRel)
15411541
idxname, RelationGetRelationName(matviewRel))));
15421542

15431543
/*
1544-
* Make dependencies so that the index is dropped if any base tables's
1544+
* Make dependencies so that the index is dropped if any base tables'
15451545
* primary key is dropped.
15461546
*/
15471547
foreach(lc, constraintList)
@@ -1704,7 +1704,7 @@ get_primary_key_attnos_from_query(Query *query, List **constraintList)
17041704
}
17051705

17061706
/*
1707-
* Store the query for the IMMV to pg_ivwm_immv
1707+
* Store the query for the IMMV to pg_ivm_immv
17081708
*/
17091709
static void
17101710
StoreImmvQuery(Oid viewOid, Query *viewQuery)

0 commit comments

Comments
 (0)