]> granicus.if.org Git - postgresql/blobdiff - src/backend/nodes/copyfuncs.c
Rework 'MOVE ALL' to 'ALTER .. ALL IN TABLESPACE'
[postgresql] / src / backend / nodes / copyfuncs.c
index 30885789304f10affba9f1dedc19393a5698ceeb..f5ddc1ced7c4345e7459169ea01ff9dd534af20a 100644 (file)
@@ -3415,14 +3415,13 @@ _copyAlterTableSpaceOptionsStmt(const AlterTableSpaceOptionsStmt *from)
        return newnode;
 }
 
-static AlterTableSpaceMoveStmt *
-_copyAlterTableSpaceMoveStmt(const AlterTableSpaceMoveStmt *from)
+static AlterTableMoveAllStmt *
+_copyAlterTableMoveAllStmt(const AlterTableMoveAllStmt *from)
 {
-       AlterTableSpaceMoveStmt *newnode = makeNode(AlterTableSpaceMoveStmt);
+       AlterTableMoveAllStmt *newnode = makeNode(AlterTableMoveAllStmt);
 
        COPY_STRING_FIELD(orig_tablespacename);
        COPY_SCALAR_FIELD(objtype);
-       COPY_SCALAR_FIELD(move_all);
        COPY_NODE_FIELD(roles);
        COPY_STRING_FIELD(new_tablespacename);
        COPY_SCALAR_FIELD(nowait);
@@ -4456,8 +4455,8 @@ copyObject(const void *from)
                case T_AlterTableSpaceOptionsStmt:
                        retval = _copyAlterTableSpaceOptionsStmt(from);
                        break;
-               case T_AlterTableSpaceMoveStmt:
-                       retval = _copyAlterTableSpaceMoveStmt(from);
+               case T_AlterTableMoveAllStmt:
+                       retval = _copyAlterTableMoveAllStmt(from);
                        break;
                case T_CreateExtensionStmt:
                        retval = _copyCreateExtensionStmt(from);