On Wed, Feb 5, 2020 at 10:09 AM Tom Lane <t...@sss.pgh.pa.us> wrote: > an enum field right in the context. You'll have to do an extra step to > discover the context's type, and if you jump to the wrong conclusion > and do, say, > p *(AllocSetContext *) ptr_value > when it's really some other context type, there won't be anything > as obvious as "type = T_GenerationContext" in what is printed to > tell you you were wrong.
Doesn't the proposed magic number address this concern? -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company