mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
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 commite13486eba
was in error not to bump catversion.) Follow-on to commite13486eba
. Discussion: http://postgr.es/m/CA+TgmoYe+EG7LdYX6pkcNxr4ygkP4+A=jm9o-CPXyOvRiCNwaQ@mail.gmail.com
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user