Re: [HACKERS] LIMIT in DECLARE CURSOR: request for comments

2000-11-02 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Tom Lane writes: >> 1. If DECLARE CURSOR does not contain a LIMIT, continue to plan on the >> basis of 10%-or-so fetch > I'd say that normally you're not using cursors because you intend to throw > away 80% or 90% of the result set, but instead you'r

Re: [HACKERS] LIMIT in DECLARE CURSOR: request for comments

2000-10-31 Thread Philip Warner
At 10:51 31/10/00 +0100, Peter Eisentraut wrote: >Tom Lane writes: > >> 1. If DECLARE CURSOR does not contain a LIMIT, continue to plan on the >> basis of 10%-or-so fetch > >I'd say that normally you're not using cursors because you intend to throw >away 80% or 90% of the result set, but instead y

Re: [HACKERS] LIMIT in DECLARE CURSOR: request for comments

2000-10-31 Thread Peter Eisentraut
Tom Lane writes: > 1. If DECLARE CURSOR does not contain a LIMIT, continue to plan on the > basis of 10%-or-so fetch I'd say that normally you're not using cursors because you intend to throw away 80% or 90% of the result set, but instead you're using it because it's convenient in your programmi

Re: [HACKERS] LIMIT in DECLARE CURSOR: request for comments

2000-10-28 Thread Don Baccus
At 12:18 PM 10/27/00 -0400, Tom Lane wrote: >Hiroshi was a little concerned about this change in behavior, and >so the first order of business is whether anyone wants to defend the >old way? IMHO it was incontrovertibly a bug, but ... Sure feels like a bug to me. Having it ignored isn't what I

Re: [HACKERS] LIMIT in DECLARE CURSOR: request for comments

2000-10-27 Thread Philip Warner
At 12:18 27/10/00 -0400, Tom Lane wrote: > >1. If DECLARE CURSOR does not contain a LIMIT, continue to plan on the >basis of 10%-or-so fetch (I'd consider anywhere from 5% to 25% to be >just as reasonable, if people want to argue about the exact number; >perhaps a SET variable is in order?). 10%

Re: [HACKERS] LIMIT in DECLARE CURSOR: request for comments

2000-10-27 Thread Tom Lane
Philip Warner <[EMAIL PROTECTED]> writes: > At 12:18 27/10/00 -0400, Tom Lane wrote: >> 1. If DECLARE CURSOR does not contain a LIMIT, continue to plan on the >> basis of 10%-or-so fetch (I'd consider anywhere from 5% to 25% to be >> just as reasonable, if people want to argue about the exact numb