pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Stephen Crowley <stephen.crowley@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Large # of rows in query extremely slow, not using
Date: Thu, 23 Sep 2004 18:47:59 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0409231840280.18935@leary.csoft.net> (raw)
In-Reply-To: <3f71fdf104092316367c5f3052@mail.gmail.com>
References: <3f71fdf104091317515c756512@mail.gmail.com>
	<28088.1095124267@sss.pgh.pa.us>
	<3f71fdf104091318228099815@mail.gmail.com>
	<28432.1095126554@sss.pgh.pa.us>
	<3f71fdf104091323047de7bb01@mail.gmail.com>
	<Pine.BSO.4.56.0409231816450.18935@leary.csoft.net>
	<3f71fdf104092316367c5f3052@mail.gmail.com>



On Thu, 23 Sep 2004, Stephen Crowley wrote:

> Thanks for the explanation. So what sort of changes need to be made to
> the client/server protocol to fix this problem?

The problem is that there is no way to indicate why you are using a 
particular statement in the extended query protocol.  For the JDBC driver 
there are two potential reasons, streaming a ResultSet and using a server 
prepared statement.  For the streaming as default case you desire there 
needs to be a way to indicate that you don't want to create a generic 
server prepared statement and that this query is really just for one time 
use, so it can generate the best plan possible.

Additionally you can only stream ResultSets that are of type FORWARD_ONLY.  
It would also be nice to be able to specify scrollability and holdability 
when creating a statement and the offset/direction when streaming data 
from a scrollable one.

Kris Jurka



view thread (17+ messages)

Message-ID: <Pine.BSO.4.56.0409231840280.18935@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0409231840280.18935@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0409231840280.18935@leary.csoft.net

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: books@ejurka.com, stephen.crowley@gmail.com
  Subject: Re: Large # of rows in query extremely slow, not using
  In-Reply-To: <Pine.BSO.4.56.0409231840280.18935@leary.csoft.net>
  References: <3f71fdf104091317515c756512@mail.gmail.com> <28088.1095124267@sss.pgh.pa.us> <3f71fdf104091318228099815@mail.gmail.com> <28432.1095126554@sss.pgh.pa.us> <3f71fdf104091323047de7bb01@mail.gmail.com> <Pine.BSO.4.56.0409231816450.18935@leary.csoft.net> <3f71fdf104092316367c5f3052@mail.gmail.com> <Pine.BSO.4.56.0409231840280.18935@leary.csoft.net>

* 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