Move the CreateStmt down to the branch that it's used in, thus
preventing the makeNode() call in cases where the CreateStmt isn't used.
Author: Ranier Vilela <
[email protected]>
Discussion: https://postgr.es/m/CAEudQAq=06YPWPhS+yyTbCwv5JLKRz8rm3dWx6JR5Uj_d_fQDA@mail.gmail.com
{
Oid viewOid;
LOCKMODE lockmode;
- CreateStmt *createStmt = makeNode(CreateStmt);
List *attrList;
ListCell *t;
}
else
{
+ CreateStmt *createStmt = makeNode(CreateStmt);
ObjectAddress address;
/*