aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_clause.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-12-23 13:35:11 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2016-12-23 13:35:18 -0500
commitfe591f8bf68db9bf81f278acce6239ee68cd4ed6 (patch)
treeec92055ef668f9261ad787c9e75e9992335d41d1 /src/backend/parser/parse_clause.c
parent158df30359025d74daee74a3b927fd07c3b1a413 (diff)
downloadpostgresql-fe591f8bf68db9bf81f278acce6239ee68cd4ed6.tar.gz
postgresql-fe591f8bf68db9bf81f278acce6239ee68cd4ed6.zip
Replace enum InhOption with simple boolean.
Now that it has only INH_NO and INH_YES values, it's just weird that it's not a plain bool, so make it that way. Also rename RangeVar.inhOpt to "inh", to be like RangeTblEntry.inh. My recollection is that we gave it a different name specifically because it had a different representation than the derived bool value, but it no longer does. And this is a good forcing function to be sure we catch any places that are affected by the change. Bump catversion because of possible effect on stored RangeVar nodes. I'm not exactly convinced that we ever store RangeVar on disk, but we have a readfuncs function for it, so be cautious. (If we do do so, then commit e13486eba was in error not to bump catversion.) Follow-on to commit e13486eba. Discussion: http://postgr.es/m/CA+TgmoYe+EG7LdYX6pkcNxr4ygkP4+A=jm9o-CPXyOvRiCNwaQ@mail.gmail.com
Diffstat (limited to 'src/backend/parser/parse_clause.c')
-rw-r--r--src/backend/parser/parse_clause.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/parser/parse_clause.c b/src/backend/parser/parse_clause.c
index a96b3f92809..f7bb09701e6 100644
--- a/src/backend/parser/parse_clause.c
+++ b/src/backend/parser/parse_clause.c
@@ -412,8 +412,7 @@ transformTableEntry(ParseState *pstate, RangeVar *r)
RangeTblEntry *rte;
/* We need only build a range table entry */
- rte = addRangeTableEntry(pstate, r, r->alias,
- (r->inhOpt == INH_YES), true);
+ rte = addRangeTableEntry(pstate, r, r->alias, r->inh, true);
return rte;
}