From: Aaron Bono <postgresql@aranya.com>
To: chester c young <chestercyoung@yahoo.com>
Cc: sql pgsql <pgsql-sql@postgresql.org>
Subject: Re: cursors and sessions
Date: Thu, 13 Mar 2008 18:04:39 -0500
Message-ID: <bf05e51c0803131604k1dcebe8fo574cd218a3cd3e07@mail.gmail.com> (raw)
In-Reply-To: <105895.21197.qm@web54303.mail.re2.yahoo.com>
References: <105895.21197.qm@web54303.mail.re2.yahoo.com>
On Thu, Mar 13, 2008 at 5:54 PM, chester c young <chestercyoung@yahoo.com>
wrote:
> is there any way to share a cursor between sessions?
>
> I have a costly query whose records need to be visited by in order by n
> number of concurrent sessions, and am unable to find the best way of
> doing this.
>
> I'd almost like to write a daemon that hands out the next record, but
> that's a royal pain to set up and maintain.
> <http://tools.search.yahoo.com/newsearch/category.php?category=shopping;
>
Why not pump your data into a table that mirrors the cursor and then create
a function that pops items off the top of this queuing table as needed by
the different sessions?
--
==================================================================
Aaron Bono
Aranya Software Technologies, Inc.
http://www.aranya.comhttp://codeelixir.com
==================================================================
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-sql@postgresql.org
Cc: postgresql@aranya.com, chestercyoung@yahoo.com
Subject: Re: cursors and sessions
In-Reply-To: <bf05e51c0803131604k1dcebe8fo574cd218a3cd3e07@mail.gmail.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