Re: dynamic loading of .so - Mailing list pgsql-general

From Douglas McNaught
Subject Re: dynamic loading of .so
Date
Msg-id m2fyr3r8l8.fsf@Douglas-McNaughts-Powerbook.local
Whole thread Raw
In response to dynamic loading of .so  (TJ O'Donnell <tjo@acm.org>)
Responses Re: dynamic loading of .so
List pgsql-general
TJ O'Donnell <tjo@acm.org> 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.
> (is global the correct term anymore?)
> When I use dynamic loading of my .so,
> each session is independent, with its own static variables.
> Will the same be true if I were to load the .so once when
> the database starts up?  Or will there be just one set of
> static variables for all sessions?

Each backend process has its own memory space, so the variables will
still be independent.

-Doug

pgsql-general by date:

Previous
From: CSN
Date:
Subject: Re: Oracle buys Innobase
Next
From: TJ O'Donnell
Date:
Subject: dynamic loading of .so