Re: Scrollable cursors and Sort performance - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Scrollable cursors and Sort performance
Date
Msg-id 23047.1141081281@sss.pgh.pa.us
Whole thread Raw
In response to Re: Scrollable cursors and Sort performance  ("Jim C. Nasby" <jnasby@pervasive.com>)
Responses Re: Scrollable cursors and Sort performance  ("Jim C. Nasby" <jnasby@pervasive.com>)
List pgsql-hackers
"Jim C. Nasby" <jnasby@pervasive.com> writes:
> On Mon, Feb 27, 2006 at 02:17:23PM +0000, Simon Riggs wrote:
>>> Possibly we could make EXPLAIN ANALYZE EXECUTE set the random-access
>>> bits.
>> 
>> Good point. Whichever we do will be wrong in some cases.... I've no real
>> opinion on this other than a vague preference for it to be quick.

> Wouldn't an EXPLAIN ANALYZE DECLARE ... have the right information to
> know if backward scan, etc was needed?

There is no EXPLAIN ANALYZE DECLARE, and AFAICS it would be a
contradiction in terms to have one, since DECLARE doesn't run the query.
Perhaps the correct addition would be EXPLAIN ANALYZE FETCH.  (EXECUTE
is unrelated, now that I think harder about it.)
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Scrollable cursors and Sort performance
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Scrollable cursors and Sort performance