Re: Cost of initiating cursors - Mailing list pgsql-general

From Tom Lane
Subject Re: Cost of initiating cursors
Date
Msg-id 6887.1365702055@sss.pgh.pa.us
Whole thread Raw
In response to Re: Cost of initiating cursors  (Matthew Churcher <matthew.churcher@realvnc.com>)
List pgsql-general
Matthew Churcher <matthew.churcher@realvnc.com> writes:
> I've tried cursor_tuple_fraction values as low as 0.0000000001 which by my reckoning should be low enough and also 0
butthe planner is still selecting seqscan-and-sort.  

Hm.  Keep in mind that plpgsql caches query plans, so if you're
examining this by checking the runtime of the function you showed,
you'd need to start a fresh session, set cursor_tuple_fraction, then
try the function to be sure you were seeing the effects of the
parameter change.

            regards, tom lane


pgsql-general by date:

Previous
From: Matthew Churcher
Date:
Subject: Re: Cost of initiating cursors
Next
From: News Subsystem
Date:
Subject: ...