* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> [...] a better idea is to add a memory-context-to-use field to struct
> ErrorData. We'd initialize it to ErrorContext when pushing a stack
> entry for normal error processing, but GetErrorContextStack could
> do something different. This would eliminate most of the explicit
> references to ErrorContext in elog.c.
Ah, fantastic idea.
> If you want I'll draft something up.
I'll take care of it, thanks for the idea!
Stephen