From: Joe Conway <mail@joeconway.com>
To: Spiegelberg, Greg <gspiegelberg@cranel.com>
Cc: Hasnul Fadhly bin Hasan <hasnulfadhly.h@mimos.my>
Cc: 'pgsql-performance@postgresql.org ' <pgsql-performance@postgresql.org>
Subject: Re: Trying to create multi db query in one large querie
Date: Mon, 13 Dec 2004 22:59:37 -0800
Message-ID: <41BE8F59.9040707@joeconway.com> (raw)
In-Reply-To: <387C22290D3FD71195D300508BF7DB5238AFB6@colmail01.cranel.local>
References: <387C22290D3FD71195D300508BF7DB5238AFB6@colmail01.cranel.local>
Spiegelberg, Greg wrote:
>
> My experience with dblink() is that each dblink() is executed serially
Correct.
If you really want to do multiple queries simultaneously, you would need
to write a function very similar to dblink_record, but using asynchonous
libpq calls to both remote hosts. See:
http://www.postgresql.org/docs/current/static/libpq-async.html
HTH,
Joe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: mail@joeconway.com, gspiegelberg@cranel.com, hasnulfadhly.h@mimos.my
Subject: Re: Trying to create multi db query in one large querie
In-Reply-To: <41BE8F59.9040707@joeconway.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox