Re: any experience with multithreaded pg apps?

From: Jeff <threshar(at)torgo(dot)978(dot)org>
To: Mark Harrison <mh(at)pixar(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: any experience with multithreaded pg apps?
Date: 2004-05-07 18:47:02
Message-ID: EDD788FC-A056-11D8-A5C9-000D9366F0C4@torgo.978.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On May 7, 2004, at 12:43 PM, Mark Harrison wrote:

> I'm looking for feedback from anybody who has used pg in a
> multi-threaded program, particularly one in which several
> threads each open a database connection.
>
> It's documented to work in that scenario, but I'm interested
> in anybody who can share some real-world with that.
>

Works great over here.
Our app sits around doing 50-150 requests/sec constantly and spends
most of its time sitting there with a blank look on its face.

Just make sure you take the normal precautions you need to take with
threaded apps (no strtok, etc. )

--
Jeff Trout <jeff(at)jefftrout(dot)com>
http://www.jefftrout.com/
http://www.stuarthamm.net/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-05-07 18:48:24 Re: Interpreting vacuum verbosity
Previous Message Tom Lane 2004-05-07 18:44:01 Re: Interpreting vacuum verbosity