Re: dynamic loading of .so

From: Douglas McNaught <doug(at)mcnaught(dot)org>
To: tjo(at)acm(dot)org
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: dynamic loading of .so
Date: 2005-10-14 23:18:27
Message-ID: m2fyr3r8l8.fsf@Douglas-McNaughts-Powerbook.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

TJ O'Donnell <tjo(at)acm(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Johan Wehtje 2005-10-15 08:27:50 Re: PostgreSQL 8.1 vs. MySQL 5.0?
Previous Message CSN 2005-10-14 23:01:14 Re: Oracle buys Innobase