Re: - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re:
Date
Msg-id Pine.LNX.4.56.0307231613380.1649@krusty.credativ.de
Whole thread Raw
In response to Re:  ("Shridhar Daithankar" <shridhar_daithankar@persistent.co.in>)
List pgsql-hackers
Shridhar Daithankar writes:

> On linux and freeBSD, that is not an issue.

FreeBSD has a separate libc_r.  I don't think they would bother with that
if there was no significant difference.

> I would really like to know for what platforms, locking mutex while selecting
> from connection list or some such object, is going to be such a great
> performance hit.

The performance hit isn't in the mutexes or specifically here or there.
But when you go into thread-safe/reentrant land, wild and wonderful things
happen, different on each platform.  We could work out a specific solution
for each platform that fits well with the local custom and is most
convenient to users.  But that is not maintainable.  So we need to work
out some kind of generalization that works similarly on most platforms.
I'm still unsure what that should really be, but everything thread-safe by
default probably won't suffice.

-- 
Peter Eisentraut   peter_e@gmx.net


pgsql-hackers by date:

Previous
From: Larry Rosenman
Date:
Subject: Re:
Next
From: The Hermit Hacker
Date:
Subject: Re: Criteria for contrib/ versus gborg?