mirror of
https://github.com/postgres/postgres.git
synced 2025-09-09 13:09:39 +03:00
Improve node type forward reference
Instead of using Node *, we can use an incomplete struct. That way, everything has the correct type and fewer casts are required. This technique is already used elsewhere in node type definitions. Reviewed-by: Nathan Bossart <nathandbossart@gmail.com> Reviewed-by: Tender Wang <tndrwang@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/637eeea8-5663-460b-a114-39572c0f6c6e%40eisentraut.org
This commit is contained in:
@@ -133,7 +133,7 @@ create_ctas_internal(List *attrList, IntoClause *into)
|
||||
if (is_matview)
|
||||
{
|
||||
/* StoreViewQuery scribbles on tree, so make a copy */
|
||||
Query *query = (Query *) copyObject(into->viewQuery);
|
||||
Query *query = copyObject(into->viewQuery);
|
||||
|
||||
StoreViewQuery(intoRelationAddr.objectId, query, false);
|
||||
CommandCounterIncrement();
|
||||
|
Reference in New Issue
Block a user