Skip site navigation (1) Skip section navigation (2)

Re: Threads

From: "Serguei Mokhov" <mokhov(at)cs(dot)concordia(dot)ca>
To: "Greg Copeland" <greg(at)CopelandConsulting(dot)Net>,"Dann Corbit" <DCorbit(at)connx(dot)com>
Cc: "PGHackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Threads
Date: 2003-01-03 22:54:20
Message-ID: 004101c2b37b$0f261ae0$0301a8c0@gunnymede.lan (view raw or flat)
Thread:
Lists: pgsql-hackers
----- Original Message ----- 
From: "Greg Copeland" <greg(at)CopelandConsulting(dot)Net>
Sent: January 03, 2003 4:45 PM

> > > (1) One thread screws up, the whole process dies. In a 
> > > multiple process 
> > > application this is not too much of an issue.
> > 
> > If you use C++ you can try/catch and nothing bad happens to anything but
> > the naughty thread.
> 
> That doesn't protect against the type of issues he's talking about. 
> Invalid pointer reference is a very common snafu which really hoses
> threaded applications.  Not to mention resource leaks AND LOCKED
> resources which are inherently an issue on Win32.

(1) is an issue only for user-level threads. And besides...

----- Original Message ----- 
From: "Dann Corbit" <DCorbit(at)connx(dot)com>
Sent: January 03, 2003 3:52 PM

> Here is a solution to the dilemma.  Make the one who suggests the
> feature be the first volunteer on the team that writes it.

.. and that's exactly what Shridhar did - he's sent in the code
_already_ in his post, allowing framework to plug in the model
into PG, as he says allowing turning on and off threads where
appropriate and keeping the current model as well. But noone
bothered to go over it if it makes sense.


----- Original Message ----- 
From: "Greg Copeland" <greg(at)CopelandConsulting(dot)Net>
Sent: January 03, 2003 4:45 PM

> > Is it a FAQ?  If not, it ought to be.
> 
> I agree.  I think mlw's list of reasons should be added to a faq.  It
> terse yet says it all!

<http://developer.postgresql.org/readtext.php?src/FAQ/FAQ_DEV.html+Developers-FAQ#1.9>

But it's not as complete as this threaded thread.

-s

In response to

  • Re: Threads at 2003-01-03 21:45:20 from Greg Copeland

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2003-01-03 23:15:28
Subject: Re: why was libpq.so's version number bumped?
Previous:From: Lamar OwenDate: 2003-01-03 22:54:00
Subject: Re: Upgrading rant.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group