Andres Freund <andres(at)2ndquadrant(dot)com> writes:
> There's a repeated pattern of
> Assert(IsA(ptr, nodetype));
> foo = (nodetype *) ptr;
> how about adding a castNode() that combines those?
Doesn't really seem worth it. The notational advantage is not great,
and to the extent that it were to touch a lot of places, the main outcome
would be pain for back-patching.
regards, tom lane