Re: newbie question: 'multithreading' longrunning postgres-queries from plpgsql-function. - Mailing list pgsql-general

From P G
Subject Re: newbie question: 'multithreading' longrunning postgres-queries from plpgsql-function.
Date
Msg-id 20030322023943.88726.qmail@web13304.mail.yahoo.com
Whole thread Raw
In response to newbie question: 'multithreading' longrunning postgres-queries from plpgsql-function.  (Erwin Moller <erwin@_removespam_dexus.nl>)
List 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@_removespam_dexus.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@postgresql.org


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


pgsql-general by date:

Previous
From: Neil Conway
Date:
Subject: Re: configuration according to the database
Next
From: "Daniel R. Anderson"
Date:
Subject: Re: configuration according to the database