C language context - Mailing list pgsql-hackers

From Andrew Dunstan
Subject C language context
Date
Msg-id 3F58D5DA.7030601@dunslane.net
Whole thread Raw
Responses Re: C language context
List pgsql-hackers
Just how transient is the memory context created for a C language 
function call?

The reason I ask is that I was getting a seg fault when I attempted to 
pfree something that should have been palloced. When I commented out the 
calls to pfree it worked fine. Most annoying ;-)

I'm still trying to get to the bottom of it, but I want to know if I'm 
safe in relying on the context cleanup to handle things for me. It's an 
immutable text function returning text, and is intended for use in a 
functional index.

cheers

andrew



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: initdb in C
Next
From: markw@osdl.org
Date:
Subject: Re: [osdldbt-general] Re: Prelimiary DBT-2 Test results