hashtable issue - HASH_FIND??

Поиск
Список
Период
Сортировка
От Jay Flattery
Тема hashtable issue - HASH_FIND??
Дата
Msg-id 824274.81395.qm@web120109.mail.ne1.yahoo.com
обсуждение исходный текст
Ответы Re: hashtable issue - HASH_FIND??  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: hashtable issue - HASH_FIND??  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi there,

I'm looking to use the PostgreSQL Hash Table for some custom functions.
However, the example, as per http://wiki.postgresql.org/wiki/HashTable crashes
postmaster (or segfaults from the cmd line) when trying to retrieve an element
from the hash.


Specifically this line fails: elem = hash_search(hashtable, (void *)key,
HASH_FIND, &found);

I can't see anything obviously wrong, is this a bug? Either in the example's
code or in the server code itself?
Any help much appreciated!






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

Предыдущее
От: devman@gmx-topmail.de
Дата:
Сообщение: Re: libpq logging redirection
Следующее
От: David Fetter
Дата:
Сообщение: Re: Postgresql database procedures?