Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Uh, I see MemoryContextSwitchTo in 8.1. I think the problem might be
> that the function is not marked with DLLIMPORT for XP.
No, the problem is it's a macro (actually inline, but effectively a
macro) in 8.1.
regards, tom lane