C language context

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Postgresql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: C language context
Date: 2003-09-05 18:28:42
Message-ID: 3F58D5DA.7030601@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeroen Ruigrok/asmodai 2003-09-05 18:31:36 Re: 64-bit pgsql
Previous Message Jan Wieck 2003-09-05 18:04:26 Re: Stats Collector Error 7.4beta1 and 7.4beta2