diff options
author | Stephen Frost <sfrost@snowman.net> | 2014-08-21 19:06:17 -0400 |
---|---|---|
committer | Stephen Frost <sfrost@snowman.net> | 2014-08-21 19:12:00 -0400 |
commit | d9b2bc45cf75f913490f1b3ce9b9263509b26704 (patch) | |
tree | 5245060be317d1a40da7398838b8e9bc5dd7751c /src/backend/nodes/equalfuncs.c | |
parent | 9243417801be3f1cfaa3a3c33d5a003f382bd7a4 (diff) |
Rework 'MOVE ALL' to 'ALTER .. ALL IN TABLESPACE'
As 'ALTER TABLESPACE .. MOVE ALL' really didn't change the tablespace
but instead changed objects inside tablespaces, it made sense to
rework the syntax and supporting functions to operate under the
'ALTER (TABLE|INDEX|MATERIALIZED VIEW)' syntax and to be in
tablecmds.c.
Pointed out by Alvaro, who also suggested the new syntax.
Back-patch to 9.4.
Diffstat (limited to 'src/backend/nodes/equalfuncs.c')
-rw-r--r-- | src/backend/nodes/equalfuncs.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index 2407cb73a38..7e53681e706 100644 --- a/src/backend/nodes/equalfuncs.c +++ b/src/backend/nodes/equalfuncs.c @@ -1638,12 +1638,11 @@ _equalAlterTableSpaceOptionsStmt(const AlterTableSpaceOptionsStmt *a, } static bool -_equalAlterTableSpaceMoveStmt(const AlterTableSpaceMoveStmt *a, - const AlterTableSpaceMoveStmt *b) +_equalAlterTableMoveAllStmt(const AlterTableMoveAllStmt *a, + const AlterTableMoveAllStmt *b) { COMPARE_STRING_FIELD(orig_tablespacename); COMPARE_SCALAR_FIELD(objtype); - COMPARE_SCALAR_FIELD(move_all); COMPARE_NODE_FIELD(roles); COMPARE_STRING_FIELD(new_tablespacename); COMPARE_SCALAR_FIELD(nowait); @@ -2896,8 +2895,8 @@ equal(const void *a, const void *b) case T_AlterTableSpaceOptionsStmt: retval = _equalAlterTableSpaceOptionsStmt(a, b); break; - case T_AlterTableSpaceMoveStmt: - retval = _equalAlterTableSpaceMoveStmt(a, b); + case T_AlterTableMoveAllStmt: + retval = _equalAlterTableMoveAllStmt(a, b); break; case T_CreateExtensionStmt: retval = _equalCreateExtensionStmt(a, b); |