hashtable issue - HASH_FIND??

From: Jay Flattery <jaycode(at)rocketmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: hashtable issue - HASH_FIND??
Date: 2010-08-04 13:00:56
Message-ID: 824274.81395.qm@web120109.mail.ne1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Fetter 2010-08-04 13:45:58 Re: Postgresql database procedures?
Previous Message devman 2010-08-04 12:21:07 Re: libpq logging redirection