On Mon, Apr 9, 2018 at 5:34 PM, Kyotaro HORIGUCHI
> The new code doesn't seem to work as written.
>> arg = eval_const_expressions_mutator((Node *) cre->arg,
>> * In case of a nested ConvertRowtypeExpr, we can convert the
>> * leaf row directly to the topmost row format without any
>> * intermediate conversions.
>> while (arg != NULL && IsA(arg, ConvertRowtypeExpr))
>> arg = (Node *) castNode(ConvertRowtypeExpr, arg)->arg;
> This runs depth-first so the while loop seems to run at most
> once. I suppose that the "arg =" and the while loop are
> transposed as intention.
Yes. I have modelled it after RelableType case few lines above in the
The Postgres Database Company