pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedcursors and sessions
2+ messages / 2 participants
[nested] [flat]
* cursors and sessions
@ 2008-03-13 22:54 chester c young <chestercyoung@yahoo.com>
2008-03-13 23:04 ` Re: cursors and sessions Aaron Bono <postgresql@aranya.com>
0 siblings, 1 reply; 2+ messages in thread
From: chester c young @ 2008-03-13 22:54 UTC (permalink / raw)
To: pgsql-sql
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.
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: cursors and sessions
2008-03-13 22:54 cursors and sessions chester c young <chestercyoung@yahoo.com>
@ 2008-03-13 23:04 ` Aaron Bono <postgresql@aranya.com>
0 siblings, 0 replies; 2+ messages in thread
From: Aaron Bono @ 2008-03-13 23:04 UTC (permalink / raw)
To: chester c young <chestercyoung@yahoo.com>; +Cc: pgsql-sql
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.com
http://codeelixir.com
==================================================================
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2008-03-13 23:04 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-03-13 22:54 cursors and sessions chester c young <chestercyoung@yahoo.com>
2008-03-13 23:04 ` Aaron Bono <postgresql@aranya.com>
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