Re: [GENERAL] dynamic loading of .so

2005-10-17 Thread Marc Munro
If you need user-accessible shared variables, you could take a look at how Veil http://pgfoundry.org/projects/veil/ achieves this. Veil provides a limited number of shared variables with an API for SQL access. The variables may only be set during initialisation or reset to avoid system state chan

Re: [GENERAL] dynamic loading of .so

2005-10-17 Thread Cristian Prieto
ge- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: Domingo, 16 de Octubre de 2005 10:42 p.m. To: Douglas McNaught Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; pgsql-general@postgresql.org Subject: Re: [GENERAL] dynamic loading of .so Douglas McNaught <[EMAIL PROTECTED]> writes: > <[EMAI

Re: [GENERAL] dynamic loading of .so

2005-10-17 Thread Tom Lane
Douglas McNaught <[EMAIL PROTECTED]> writes: > <[EMAIL PROTECTED]> writes: >> are there any way to make them global for all the instances? > Put them in shared memory. This probably isn't trival, as all the > shared memory is allocated up front and used for existing purposes (at > least, as I und

Re: [GENERAL] dynamic loading of .so

2005-10-16 Thread Douglas McNaught
<[EMAIL PROTECTED]> writes: > are there any way to make them global for all the instances? Put them in shared memory. This probably isn't trival, as all the shared memory is allocated up front and used for existing purposes (at least, as I understand it). I guess you could always allocate your

Re: [GENERAL] dynamic loading of .so

2005-10-16 Thread cristian
are there any way to make them global for all the instances? On 10/14/2005, "Douglas McNaught" <[EMAIL PROTECTED]> wrote: >TJ O'Donnell <[EMAIL PROTECTED]> writes: > >> I have begun to use some static variables in my c-language >> functions to maintain state (3rd party licensing issues) during >

[GENERAL] dynamic loading of .so

2005-10-14 Thread TJ O'Donnell
I have begun to use some static variables in my c-language functions to maintain state (3rd party licensing issues) during the course of a session (postgres process, spawned by postmaster). When I use dynamic loading of my .so, each session is independent, with its own static variables. Will the s

Re: [GENERAL] dynamic loading of .so

2005-10-14 Thread Douglas McNaught
TJ O'Donnell <[EMAIL PROTECTED]> writes: > I have begun to use some static variables in my c-language > functions to maintain state (3rd party licensing issues) during > the course of a session (postgres process, spawned by postmaster). > These are declared static outside the scope of any function

[GENERAL] dynamic loading of .so

2005-10-14 Thread TJ O'Donnell
I have begun to use some static variables in my c-language functions to maintain state (3rd party licensing issues) during the course of a session (postgres process, spawned by postmaster). These are declared static outside the scope of any function. (is global the correct term anymore?) When I us