From: A.M. <agentm@themactionfaction.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Limit vs setMaxRows issue
Date: Wed, 21 Jun 2006 12:10:22 -0400 (EDT)
Message-ID: <34158.216.41.12.254.1150906222.squirrel@webmail.webopticon.org> (raw)
In-Reply-To: <Pine.BSO.4.63.0606211055020.7242@leary2.csoft.net>
References: <44990D57.9070506@sebster.com>
<Pine.BSO.4.63.0606211055020.7242@leary2.csoft.net>
On Wed, June 21, 2006 12:00 pm, Kris Jurka wrote:
>
> I'm not sure how you would like the driver to tell the server that it
> doesn't want more than setMaxRows rows. The defined API for this is using
> LIMIT in your sql query. The driver cannot do this for you (at least
> without parsing your query) because the query may already have a LIMIT or
> it may be something like an INSERT into a VIEW that has a DO INSTEAD
> SELECT rule on it. If you're suggesting that we extended the
> frontend/backend protocol to include this extra information than that's
> definitely a feature request, not a bug report.
The backend protocol already supports maximum row limit if you use the
extended protocol.
I guess it's a legacy thing in the driver, but there really is no reason
to use the simple query protocol at all on recent postgresqls.
-M
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: agentm@themactionfaction.com
Subject: Re: Limit vs setMaxRows issue
In-Reply-To: <34158.216.41.12.254.1150906222.squirrel@webmail.webopticon.org>
References: <44990D57.9070506@sebster.com> <Pine.BSO.4.63.0606211055020.7242@leary2.csoft.net> <34158.216.41.12.254.1150906222.squirrel@webmail.webopticon.org>
* 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