From: | "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu> |
---|---|
To: | "Magnus =?iso-8859-1?Q?N=E4slund?=" <Magnus(at)Graphicomp(dot)Se> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [HACKERS] pgsql and threads don't match |
Date: | 1998-02-13 17:02:14 |
Message-ID: | 34E47C96.FB65DEBD@alumni.caltech.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Magnus Näslund wrote:
> I'm a Linux developer that are making a huge server, and i'm trying out
> databases.
> Are the postgres librarys not thread-safe?
> If not, when will it be?
The Postgres backend is single-threaded software. The client stuff is
probably thread-safe, and both frontend and backend work with thread-safe
libraries. Clients can open multiple connections to backends, so I would
think that you could do so from multiple threads. You might need to take a
mutex on the connection-opening step; not sure about that. Also, there is
a separate process per backend connection, so multiple simultaneous
connections are allowed.
Good luck.
- Tom
From | Date | Subject | |
---|---|---|---|
Next Message | The Hermit Hacker | 1998-02-13 17:10:20 | Re: [HACKERS] Unsubscribe |
Previous Message | Zeugswetter Andreas SARZ | 1998-02-13 17:00:25 | Re: Subselects open issue Nr. 5 |