dynamic loading of .so

From: TJ O'Donnell <tjo(at)acm(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: dynamic loading of .so
Date: 2005-10-14 22:17:39
Message-ID: 43502E83.9020207@acm.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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?

TJ

Responses

Browse pgsql-general by date

  From Date Subject
Next Message CSN 2005-10-14 23:01:14 Re: Oracle buys Innobase
Previous Message TJ O'Donnell 2005-10-14 22:16:07 dynamic loading of .so