From: | Chris Browne <cbbrowne(at)acm(dot)org> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: PostgreSQL process architecture question. |
Date: | 2008-09-10 18:22:04 |
Message-ID: | 878wtz275f.fsf@dba2.int.libertyrms.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
guxiaobo1982(at)hotmail(dot)com ("Amber") writes:
> We know PostgreSQL uses one dedicated server process to serve one
> client connection, what we want to know is whether PostgreSQL use
> multiple threads inside agents processes to take advantage of
> multiple CPUs. In our site we have only a few concurrent
> connections, so what occurs inside > agent process is very
> important to us.
No, PostgreSQL does not attempt to make any use of threading at this
time. The FAQ describes this quite nicely:
"Why don't you use threads, raw devices, async-I/O, <insert your favorite wizz-bang feature here>?
There is always a temptation to use the newest operating system features as soon as they arrive. We resist that temptation.
First, we support 15+ operating systems, so any new feature has to be
well established before we will consider it. Second, most new
wizz-bang features don't provide dramatic improvements. Third, they
usually have some downside, such as decreased reliability or
additional code required. Therefore, we don't rush to use new features
but rather wait for the feature to be established, then ask for
testing to show that a measurable improvement is possible.
As an example, threads are not currently used in the backend code because:
* Historically, threads were unsupported and buggy.
* An error in one backend can corrupt other backends.
* Speed improvements using threads are small compared to the remaining backend startup time.
* The backend code would be more complex.
So, we are not ignorant of new features. It is just that we are
cautious about their adoption. The TODO list often contains links to
discussions showing our reasoning in these areas."
--
select 'cbbrowne' || '@' || 'cbbrowne.com';
http://cbbrowne.com/info/oses.html
Given recent events in Florida, the tourism board in Texas has
developed a new advertising campaign based on the slogan "Ya'll come
to Texas, where we ain't shot a tourist in a car since November 1963."
From | Date | Subject | |
---|---|---|---|
Next Message | Zdenek Kotala | 2008-09-10 19:09:48 | Re: 64-bit Compile Failure on Solaris 10 with OpenSSL |
Previous Message | Tom Lane | 2008-09-10 17:28:26 | Re: No error when column doesn't exist |