• Tom Lane's avatar
    Rearrange explain.c's API so callers need not embed sizeof(ExplainState). · 8e166e16
    Tom Lane authored
    The folly of the previous arrangement was just demonstrated: there's no
    convenient way to add fields to ExplainState without breaking ABI, even
    if callers have no need to touch those fields.  Since we might well need
    to do that again someday in back branches, let's change things so that
    only explain.c has to have sizeof(ExplainState) compiled into it.  This
    costs one extra palloc() per EXPLAIN operation, which is surely pretty
    negligible.
    8e166e16
explain.h 3.25 KB