Re: Asynchronous query execution

From: John R Pierce <pierce(at)hogranch(dot)com>
To: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Asynchronous query execution
Date: 2010-12-08 13:40:32
Message-ID: 4CFF8AD0.5080602@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

On 12/08/10 5:35 AM, c k wrote:
> Hello,
> I would like to know how can we execute the queries asynchronously?
> If we use and execute plpgsql functions they just completes the
> execution or throws an error on error. In between next sql statement
> waits for the previous one to complete the execution. But in few
> situations it is required not to wait for getting the completion of
> previous sql statement. How can this e achieved?
>

one postgresql connection can only run one query at a time.

run your asynchronous queries from a thread with its own connection

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Robert Gravsjö 2010-12-08 14:01:38 Re: [GENERAL] Asynchronous query execution
Previous Message c k 2010-12-08 13:35:11 Asynchronous query execution

Browse pgsql-general by date

  From Date Subject
Next Message Rob Gansevles 2010-12-08 13:47:25 Maximum size for char or varchar with limit
Previous Message Andre Lopes 2010-12-08 13:35:50 Re: How to obtain the maximum value of a date, between 3 tables...