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
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
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
<[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
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
>
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
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
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