pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Bitmead <chris@tech.com.au>
To: pgsql-general@postgreSQL.org
Subject: Re: [GENERAL] Multi-threading on PostgreSQL?
Date: Thu, 15 Jul 1999 16:31:11 +1000
Message-ID: <378D802F.8FDD2726@tech.com.au> (raw)
References: <000701bece89$2c094900$07581f18@tiago-s-dell.hawaii.rr.com>

I think you are missing something. Threads and processes, to a great
extent are 6 of one and half a dozen of the other. Postgres uses
multiple processes accessing a shared memory area. A multithreaded
database would use multiple threads accessing a shared memory area. In
most OSes, threads and processes are treated very much the same way.
Threads and processes don't necessarily have to "wait". Both threads and
processes use locks. A good multi-process implementation will beat a bad
threaded one every time.

A threaded implementation can be more efficient, specifically when
you've got hundreds of simultaneous connections, but we're not talking
about some giant leap here.

That's not to say Sybase isn't faster than PostgreSQL (or slower for
that matter. I wouldn't know). But I'd advise against putting any stock
into whether it's threaded or not. As always, do your own testing.

Tiago Hermans wrote:
> 
> Hi,
> 
> I am really impressed with the features of PostgreSQL but am wondering if we
> should use this product for our project. We have tried several databases
> (MySQL, Sybase ASE, Sybase ASA) and we are now looking at PostgreSQL before
> releasing our service on the Internet.
> 
> My concern comes from the fact that there's no multi-threading support in
> PostgreSQL and since we expect many customers to be connected at the same
> time on multiple connections, I am afraid the time to perform the SQL
> statements will be much longer, since they'll all be queued one after the
> other. Therefore, if one query takes a long time, all the other queries have
> to wait behind before being executed.
> 
> Am I missing something or are my assumptions correct?
> Also, does PostgreSQL supports international characters?
> 
> Thank you for any info this.
> 
> Tiago Hermans
> thermans@hawaii.rr.com



view thread (5+ messages)  latest in thread

Message-ID: <378D802F.8FDD2726@tech.com.au>
Permalink:  ../378D802F.8FDD2726@tech.com.au/
Also on:    postgresql.org/message-id/378D802F.8FDD2726@tech.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: chris@tech.com.au, pgsql-general@postgreSQL.org
  Subject: Re: [GENERAL] Multi-threading on PostgreSQL?
  In-Reply-To: <378D802F.8FDD2726@tech.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox