Re: Extending SQL with C, shared library problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Extending SQL with C, shared library problem
Дата
Msg-id 25779.1121896145@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Extending SQL with C, shared library problem  (Shawn Garbett <shawn_garbett@yahoo.com>)
Ответы Re: Extending SQL with C, shared library problem  (Shawn Garbett <shawn_garbett@yahoo.com>)
Список 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 по дате отправления:

Предыдущее
От: Shawn Garbett
Дата:
Сообщение: Extending SQL with C, shared library problem
Следующее
От: Shawn Garbett
Дата:
Сообщение: Re: Extending SQL with C, shared library problem