Re: Custom Data Type Question

Поиск
Список
Период
Сортировка
От Greg Mitchell
Тема Re: Custom Data Type Question
Дата
Msg-id 455CA7F3.5080106@atdesk.com
обсуждение исходный текст
Ответ на Custom Data Type Question  (Greg Mitchell <gmitchell@atdesk.com>)
Ответы Re: Custom Data Type Question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
As far as memory management goes, do I just use hash_create() and assign 
that pointer to fn_extra and at the end of the query it will be freed? 
Or will it not be freed until this end of the transaction? I'm really 
having trouble understanding the memory management issues with Postgres.

Greg

Andrew Dunstan wrote:
> Greg Mitchell wrote:
>>
>>
>>
>> Also, are there any ADTs like a hash-map or tree-map in the server
>> libraries (my background is C++ and am use to having std::map<>) or do I
>> need to role my  own?
>>
>>
> 
> Look at the dynahash code. I just used it for the first time in a plperl 
> patch, and it's reasonably straightforward.
> 
> cheers
> 
> andrew
> 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Segmentation fault with HEAD.
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Custom Data Type Question