pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robin Houston <robin.houston@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Cursor-based results: bafflingly slow
Date: Fri, 3 Jul 2009 15:38:11 +0100
Message-ID: <1b795e7b0907030738v67964f36ic4bbbf39ace0e5af@mail.gmail.com> (raw)
In-Reply-To: <749.1246631075@sss.pgh.pa.us>
References: <1b795e7b0907030546o7e44ebcdteb1168c9d6680380@mail.gmail.com>
	<1b795e7b0907030601x53ad69efk5412acc1a2595c61@mail.gmail.com>
	<4A4E04D1.5010905@opencloud.com>
	<1b795e7b0907030639r562a9006g4c3b286bce3e5d7b@mail.gmail.com>
	<4A4E11EB.4040809@opencloud.com>
	<749.1246631075@sss.pgh.pa.us>

2009/7/3 Tom Lane <tgl@sss.pgh.pa.us>

> You need to use a cursor for that.  The problem with the fetchsize
> mechanism is that it doesn't give the planner any clue that the user
> might not intend to fetch the whole result, or might prefer low startup
> cost to low total cost anyway.


Thank you very much (and Oliver too). That's what I needed to know. I'll
change my code to use explicit cursors.

Robin

view thread (6+ messages)

Message-ID: <1b795e7b0907030738v67964f36ic4bbbf39ace0e5af@mail.gmail.com>
Permalink:  ../1b795e7b0907030738v67964f36ic4bbbf39ace0e5af@mail.gmail.com/
Also on:    postgresql.org/message-id/1b795e7b0907030738v67964f36ic4bbbf39ace0e5af@mail.gmail.com

 · 

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-jdbc@postgresql.org
  Cc: robin.houston@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: Cursor-based results: bafflingly slow
  In-Reply-To: <1b795e7b0907030738v67964f36ic4bbbf39ace0e5af@mail.gmail.com>
  References: <1b795e7b0907030546o7e44ebcdteb1168c9d6680380@mail.gmail.com> <1b795e7b0907030601x53ad69efk5412acc1a2595c61@mail.gmail.com> <4A4E04D1.5010905@opencloud.com> <1b795e7b0907030639r562a9006g4c3b286bce3e5d7b@mail.gmail.com> <4A4E11EB.4040809@opencloud.com> <749.1246631075@sss.pgh.pa.us> <1b795e7b0907030738v67964f36ic4bbbf39ace0e5af@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