Re: Threaded PosgreSQL server

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: mkscott(at)sacadia(dot)com
Cc: "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>, mlw <markw(at)mohawksoft(dot)com>, Justin Clift <justin(at)postgresql(dot)org>, Haroldo Stenger <hstenger(at)adinet(dot)com(dot)uy>, pgsql-hackers(at)postgresql(dot)org, Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: Threaded PosgreSQL server
Date: 2002-02-08 18:45:16
Message-ID: 24964.1013193916@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

<mkscott(at)sacadia(dot)com> writes:
> On Fri, 8 Feb 2002, Tom Lane wrote:
>> I have a sneaking feeling that what you are going to come up with is a
>> multi-megabyte patch to convert CurrentMemoryContext into a non-global,
>> which will require changing the parameter list of damn near every
>> routine in the backend.

> While working with 7.0.2, I changed the call signature on only about 10
> functions. In the MemoryContext example,
> MemorycontextSwitchTo(<Any>MemoryContext) turned into
> MemoryContextSwitchTo(GetEnv()-><Any>MemoryContext). You may be able
> to do this with a #define.

Oh, I see. Okay, if we can hide the messiness inside #define's then it
might not be as bad as I was expecting. That'd also allow the overhead
to be compiled away when we didn't need/want thread support, which'd be
even nicer.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Vince Vielhaber 2002-02-08 18:51:19 Re: PostgreSQL 7.2 on SlashDot
Previous Message Tom Lane 2002-02-08 18:40:27 Re: compile error of PostgreSQL 7.2 on FreeBSD-current