Search Postgresql Archives

hashtable issue - HASH_FIND??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!



      


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux