Andres Freund <[email protected]> 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
--
Sent via pgsql-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers