| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера