Re: newbie question: 'multithreading' longrunning postgres-queries from plpgsql-function.

From: P G <pg_dba(at)yahoo(dot)com>
To: Erwin Moller <erwin(at)_removespam_dexus(dot)nl>, pgsql-general(at)postgresql(dot)org
Subject: Re: newbie question: 'multithreading' longrunning postgres-queries from plpgsql-function.
Date: 2003-03-22 02:39:43
Message-ID: 20030322023943.88726.qmail@web13304.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Normally how??? Will the database continue accepting
other connections? Yes. Can you expect reasonable
response times from requests on those other
connections? It depends on the load of the db,
available system resources for the database, execution
plans, and other things. PostgreSQL is a multi-user
database and so functions do get executed concurrently
(sort of) when called from different connections at
the same time. Functions called within a transaction
get executed in order.

Thanks.

--- Erwin Moller <erwin(at)_removespam_dexus(dot)nl> wrote:
> Hi Group,
>
>
> If a function (plpgsql in Postgres7.3) takes a long
> while to complete,
> and only performs updates on tables, will other
> connections to the same
> database just continue to function normally?
>
> I understand that normal longrunning queries will
> run simultaniously,
> but does that apply to plpgsql-functions too?
>
> I need to know a little bit more about
> 'multithreading' in Postgres
> before coding my application that way.
> (I am not sure 'multithreading' is the right choice
> of words for the
> describted situation.)
>
> Thanks.
>
> Regards,
> Erwin
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to
majordomo(at)postgresql(dot)org

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Daniel R. Anderson 2003-03-22 02:49:03 Re: configuration according to the database
Previous Message Neil Conway 2003-03-22 01:56:25 Re: configuration according to the database