Re: Extending SQL with C, shared library problem - Mailing list pgsql-novice

From Tom Lane
Subject Re: Extending SQL with C, shared library problem
Date
Msg-id 25779.1121896145@sss.pgh.pa.us
Whole thread Raw
In response to Extending SQL with C, shared library problem  (Shawn Garbett <shawn_garbett@yahoo.com>)
Responses Re: Extending SQL with C, shared library problem
List pgsql-novice
Shawn Garbett <shawn_garbett@yahoo.com> writes:
> I've got C code written to store a value in the
> context of an active connection using a hash. It
> worked until I added some semaphores to control memory
> reads/writes to the shared resource. This is on SLES9
> Linux box running a 2.6.5 kernel.

I dunno about your shared library problem, but there is nothing even
remotely "shared" about that hashtable, so you hardly need a semaphore
to protect it.  It's just in the memory of one backend process.

            regards, tom lane

pgsql-novice by date:

Previous
From: Shawn Garbett
Date:
Subject: Extending SQL with C, shared library problem
Next
From: Shawn Garbett
Date:
Subject: Re: Extending SQL with C, shared library problem