Re: [PERFORM] Odd explain estimate

2003-08-02 Thread Jim C. Nasby
On Fri, Aug 01, 2003 at 08:16:12AM -0400, Andrew Sullivan wrote: > On Thu, Jul 31, 2003 at 05:59:59PM -0500, Jim C. Nasby wrote: > > > > Well, if I don't do this it wants to seqscan a table that occupies 350k > > pages, instead of pulling a couple thousand rows. I started running it > > with the

Re: [PERFORM] Odd explain estimate

2003-08-01 Thread Andrew Sullivan
On Thu, Jul 31, 2003 at 05:59:59PM -0500, Jim C. Nasby wrote: > > Well, if I don't do this it wants to seqscan a table that occupies 350k > pages, instead of pulling a couple thousand rows. I started running it > with the seqscan and it's already taken way longer than it does if I > disable seqsc

Re: [PERFORM] Odd explain estimate

2003-07-31 Thread Jim C. Nasby
On Thu, Jul 31, 2003 at 04:59:21PM -0400, Andrew Sullivan wrote: > On Thu, Jul 31, 2003 at 02:51:45PM -0500, Jim C. Nasby wrote: > If you really needed to set enable_seqscan=false (did you really? > Are you sure that's not the cheapest way?), you might want to > investigate expainding the statisti

Re: [PERFORM] Odd explain estimate

2003-07-31 Thread Andrew Sullivan
On Thu, Jul 31, 2003 at 02:51:45PM -0500, Jim C. Nasby wrote: > Why is pgsql estimating a cost of 1 for retire_today in this > query? I analyzed it, and there's nothing very odd about it, other than > it's a temp table. > > BTW, I had to set enable_seqscan=false to get this, otherwise it w

[PERFORM] Odd explain estimate

2003-07-31 Thread Jim C. Nasby
Why is pgsql estimating a cost of 1 for retire_today in this query? I analyzed it, and there's nothing very odd about it, other than it's a temp table. BTW, I had to set enable_seqscan=false to get this, otherwise it wants to seqscan ogr_results, which is rather painful since it occupies 3