Re: Use of global and static variables in shared libraries

From: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>
To: "Don Walker" <don(dot)walker(at)versaterm(dot)com>
Cc: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Use of global and static variables in shared libraries
Date: 2007-09-14 21:12:36
Message-ID: 46EAF944.2010602@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Don Walker wrote:
> Q2 b) You seem to imply that, since the backend doesn't use threads,
> simultaneous single evaluations of my aggregate by different
> users/connections would not be a problem for the static or global variables.
> If 200 users want to evaluate my aggregate at the same time how does the
> backend service them?

They will all use a different backend process. Each backend serves one
connection.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message August Zajonc 2007-09-15 01:02:06 Re: 8.3 Open Items
Previous Message Pavel Stehule 2007-09-14 20:06:39 Re: RETURNING and DO INSTEAD ... Intentional or not?