pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets?
4+ messages / 2 participants
[nested] [flat]

* Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets?
@ 2009-05-17 17:35 Clemens Eisserer <linuxhippy@gmail.com>
  2009-05-18 14:14 ` Re: Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets? Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Clemens Eisserer @ 2009-05-17 17:35 UTC (permalink / raw)
  To: pgsql-jdbc

Hello,

First of all thank you for postgres. Its an amazing piece of software.

I've a legacy software which relies on updateable+scrollable
ResultSets running on postgres 7.4.
Unfourtunatly this version didn't support lazy updateable ResultSets,
so when the ResultSet is opened the whole query contents are sent to
the client at once instead of lazily - which starts to become a
serious performance problem the more data is inserted.
Does Pg 8.3 or 8.4 support lazy fetched + updateable +scrollable ResultSets?

Thank you in advance, Clemens



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets?
  2009-05-17 17:35 Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets? Clemens Eisserer <linuxhippy@gmail.com>
@ 2009-05-18 14:14 ` Kris Jurka <books@ejurka.com>
  2009-05-18 19:17   ` Re: Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets? Clemens Eisserer <linuxhippy@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Kris Jurka @ 2009-05-18 14:14 UTC (permalink / raw)
  To: Clemens Eisserer <linuxhippy@gmail.com>; +Cc: pgsql-jdbc



On Sun, 17 May 2009, Clemens Eisserer wrote:

> Does Pg 8.3 or 8.4 support lazy fetched + updateable +scrollable 
> ResultSets?
>

No.

Kris Jurka



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets?
  2009-05-17 17:35 Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets? Clemens Eisserer <linuxhippy@gmail.com>
  2009-05-18 14:14 ` Re: Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets? Kris Jurka <books@ejurka.com>
@ 2009-05-18 19:17   ` Clemens Eisserer <linuxhippy@gmail.com>
  2009-05-18 22:10     ` Re: Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets? Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Clemens Eisserer @ 2009-05-18 19:17 UTC (permalink / raw)
  To: pgsql-jdbc

Thanks for the clarification.

Is it just the jdbc-driver lacking that functionality, or is backend
functionality missing too?

Thanks, Clemens

2009/5/18 Kris Jurka <books@ejurka.com>:
>
>
> On Sun, 17 May 2009, Clemens Eisserer wrote:
>
>> Does Pg 8.3 or 8.4 support lazy fetched + updateable +scrollable
>> ResultSets?
>>
>
> No.
>
> Kris Jurka
>



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets?
  2009-05-17 17:35 Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets? Clemens Eisserer <linuxhippy@gmail.com>
  2009-05-18 14:14 ` Re: Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets? Kris Jurka <books@ejurka.com>
  2009-05-18 19:17   ` Re: Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets? Clemens Eisserer <linuxhippy@gmail.com>
@ 2009-05-18 22:10     ` Kris Jurka <books@ejurka.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Kris Jurka @ 2009-05-18 22:10 UTC (permalink / raw)
  To: Clemens Eisserer <linuxhippy@gmail.com>; +Cc: pgsql-jdbc



On Mon, 18 May 2009, Clemens Eisserer wrote:

> Is it just the jdbc-driver lacking that functionality, or is backend
> functionality missing too?
>

You can look at it both ways.  Around the 7.4 release we had a patch that 
almost worked for scrollable, cursor based resultsets, but it had some 
bugs and never got committed.  At the time the driver converted queries to 
explicit DECLARE CURSOR statements and then the patch made it do MOVE and 
FETCH commands to retrieve the desired data.  For the 8.0 release the 
driver was rewritten to use protocol level commands to create "portals" 
which are more or less equivalent to cursors.  Unfortunately portals can 
only move forward so they aren't scrollable.  The JDBC team's position is 
that the backend and protocol lack support for scrollable portals and 
that's what we're waiting for to implement this feature.

Kris Jurka




^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2009-05-18 22:10 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-05-17 17:35 Does 8.3/8.4 support lazy fetched + updateable +scrollable ResultSets? Clemens Eisserer <linuxhippy@gmail.com>
2009-05-18 14:14 ` Kris Jurka <books@ejurka.com>
2009-05-18 19:17   ` Clemens Eisserer <linuxhippy@gmail.com>
2009-05-18 22:10     ` Kris Jurka <books@ejurka.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