On 2013-04-20 16:32:36 -0400, Stephen Woodbridge wrote:
> Hi all,
>
> I have been writing pg extensions for a while but I just ran into a problem
> that has me stumped.
>
> I have code for a SRF and it works fine on pg 9.2.2 on linux, but fails with
> am error in the logfile.
>
> TRAP: FailedAssertion("!(context != CurrentMemoryContext)", File: "mcxt.c",
> Line: 172)
This means that the current memory context is being deleted. Are you
doing that or did you maybe MemoryContextSwitchTo to some context but
not back?
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services