C language context

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема C language context
Дата
Msg-id 3F58D5DA.7030601@dunslane.net
обсуждение исходный текст
Ответы Re: C language context  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: initdb in C
Следующее
От: markw@osdl.org
Дата:
Сообщение: Re: [osdldbt-general] Re: Prelimiary DBT-2 Test results