| От | Tom Lane |
|---|---|
| Тема | Re: hashtable issue - HASH_FIND?? |
| Дата | |
| Msg-id | 18599.1280933184@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | hashtable issue - HASH_FIND?? (Jay Flattery <jaycode@rocketmail.com>) |
| Ответы |
Re: hashtable issue - HASH_FIND??
|
| Список | pgsql-general |
Jay Flattery <jaycode@rocketmail.com> writes: > 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. I think the "palloc(sizeof(key))" bits ought to be "palloc(sizeof(*key))" ... or personally I'd have used sizeof(HashKey). Although offhand it looks like that should be the same size or larger, so it doesn't seem to explain a crash. Where's the crash happening exactly? regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера