Remove unused fields from ReindexStmt.
authorFujii Masao <[email protected]>
Wed, 24 Dec 2014 12:40:47 +0000 (21:40 +0900)
committerFujii Masao <[email protected]>
Wed, 24 Dec 2014 12:40:47 +0000 (21:40 +0900)
fe263d1 changed the REINDEX logic so that those fields are not used at all,
but forgot to remove them.

Sawada Masahiko

src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/include/nodes/parsenodes.h

index 491e4db9d6f7e77426a2e53cc901ebe7ac9779c6..a737d7d86fcfe7d911718ba2edf242e859c4af8b 100644 (file)
@@ -3754,8 +3754,6 @@ _copyReindexStmt(const ReindexStmt *from)
    COPY_SCALAR_FIELD(kind);
    COPY_NODE_FIELD(relation);
    COPY_STRING_FIELD(name);
-   COPY_SCALAR_FIELD(do_system);
-   COPY_SCALAR_FIELD(do_user);
 
    return newnode;
 }
index 08036743d57e7bcea18e1536d3b0748c25dfbb24..14e190aeac4a3a3c6afc91412456008343fe337e 100644 (file)
@@ -1901,8 +1901,6 @@ _equalReindexStmt(const ReindexStmt *a, const ReindexStmt *b)
    COMPARE_SCALAR_FIELD(kind);
    COMPARE_NODE_FIELD(relation);
    COMPARE_STRING_FIELD(name);
-   COMPARE_SCALAR_FIELD(do_system);
-   COMPARE_SCALAR_FIELD(do_user);
 
    return true;
 }
index 35e7b28a434fc617ec8a84f707be4249344d2282..9141c303028fd5f3c6e8fb620852dad049aab23c 100644 (file)
@@ -2739,8 +2739,6 @@ typedef struct ReindexStmt
    ReindexObjectType   kind;   /* REINDEX_OBJECT_INDEX, REINDEX_OBJECT_TABLE, etc. */
    RangeVar   *relation;       /* Table or index to reindex */
    const char *name;           /* name of database to reindex */
-   bool        do_system;      /* include system tables in database case */
-   bool        do_user;        /* include user tables in database case */
 } ReindexStmt;
 
 /* ----------------------