Re: hashtable issue - HASH_FIND??

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jay Flattery <jaycode(at)rocketmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: hashtable issue - HASH_FIND??
Date: 2010-08-04 19:51:47
Message-ID: 25203.1280951507@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jay Flattery <jaycode(at)rocketmail(dot)com> writes:
> Actually, if I just dump the example into a file, compile and install it as a
> function, it works.

> Only fails when I add the code (without changing anything!) to existing source
> where I'd like to use it.

Hmph, are you trying to incorporate this code into the core backend?
It's depending on being in a dynamic library, because otherwise that
_PG_init function won't get called. (Although that still seems like
it doesn't explain the symptom ... should crash sooner if the
hashtable's not been created.)

FWIW, that backtrace looks like it's from the postmaster process, not
from a crashing backend. You need to make sure you attach gdb to the
right process ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nick 2010-08-04 22:03:39 Re: On insert duplicate row, return existing key
Previous Message Jay Flattery 2010-08-04 19:45:30 Re: hashtable issue - HASH_FIND??