I did a search on "index" and "type" (with quotes) and there were few hits in the planner code, but it looks like all of them were not related to the RangeVariable attributes. So, I eliminated them. What puzzled me is that the "alias" attribute is not used as well which is hard to believe unless I am mistaken. The only place where ""tablescan" node is parsed is the AbstractParsedStmt.parseTables method but it doesn't look at the "alias" attribute at all. There are few places in the  AbstractParsedStmt and   ParsedSelectStmt where "alias" attribute is used but all of them are related to the column ref node, not the tablescan one.