From 3b6ca123b5665044557154385a6be5d1df76c5e5 Mon Sep 17 00:00:00 2001 From: Fujii Masao Date: Wed, 24 Dec 2014 21:40:47 +0900 Subject: [PATCH] Remove unused fields from ReindexStmt. 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 | 2 -- src/backend/nodes/equalfuncs.c | 2 -- src/include/nodes/parsenodes.h | 2 -- 3 files changed, 6 deletions(-) diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 491e4db9d6..a737d7d86f 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -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; } diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index 08036743d5..14e190aeac 100644 --- a/src/backend/nodes/equalfuncs.c +++ b/src/backend/nodes/equalfuncs.c @@ -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; } diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 35e7b28a43..9141c30302 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -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; /* ---------------------- -- 2.40.0