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

Re: Using Threads?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Samplonius <tom(at)sdf(dot)com>
Cc: Junfeng Zhang <junfengz(at)cae(dot)wisc(dot)edu>, Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Using Threads?
Date: 2000-12-09 05:25:16
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
> On Mon, 4 Dec 2000, Junfeng Zhang wrote:
> > All the major operating systems should have POSIX threads implemented.
> > Actually this can be configurable--multithreads or one thread.
>   I don't understand this.  The OS can be configured for one thread?  How
> would that be any of use?
> > Thread-only server is unsafe, I agree. Maybe the following model can be a
> > little better. Several servers, each is multi-threaded. Every server can
> > support a maximum number of requests simultaneously. If anything bad
> > happends, it is limited to that server. 
>   There is no difference.  If anything bad happens with the current
> multi-process server, all the postgres backends shutdown because the
> shared memory may be corrupted.

Yes.  Are we adding reliability with per-process backends.  I think so
because things are less likely to go haywire, and we are more likely to
be able to clean things up in a failure.

  Bruce Momjian                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to


pgsql-hackers by date

Next:From: Bruce MomjianDate: 2000-12-09 05:26:15
Subject: Re: Using Threads?
Previous:From: Bruce MomjianDate: 2000-12-09 05:22:34
Subject: Re: Using Threads?

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