Re: Extending SQL with C, shared library problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Shawn Garbett <shawn_garbett(at)yahoo(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Extending SQL with C, shared library problem
Date: 2005-07-20 21:49:05
Message-ID: 25779.1121896145@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Shawn Garbett <shawn_garbett(at)yahoo(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Shawn Garbett 2005-07-20 21:55:41 Re: Extending SQL with C, shared library problem
Previous Message Shawn Garbett 2005-07-20 20:30:48 Extending SQL with C, shared library problem