Bruce Momjian <pgman@candle.pha.pa.us> writes:
> We can move the is_temp_relname define if you wish but with one hack
> already in rel.h for get_temp_rel_by_physicalname(), I am not excited
> about adding another to rel.h. In fact, is_temp_relname needs
> PG_TEMP_REL_PREFIX so we would have to move it too. However, I don't
> see any other solution so I moved both to from temprel.h to rel.h.
Yeah, I didn't see any other way either. With luck this whole issue
will go away when we do schemas... in the meantime at least the ugliness
is pretty localized.
regards, tom lane