Re: [PERFORM] sequence scan problem

2008-06-30 Thread John Beaver
You're right - for some reason I was looking at the (18 rows) at the bottom. Pilot error indeed - I'll have to figure out what's going on with my data. Thanks! Tom Lane wrote: John Beaver <[EMAIL PROTECTED]> writes: Ok, here's the explain analyze result. Again, this is Postgres

Re: [PERFORM] sequence scan problem

2008-06-30 Thread Tom Lane
John Beaver <[EMAIL PROTECTED]> writes: > Ok, here's the explain analyze result. Again, this is Postgres 8.3.3 and > I vacuumed-analyzed both tables directly after they were created. > Merge Join (cost=1399203593.41..6702491234.74 rows=352770803726 > width=22) (actual time=6370194.467..2299130

Re: [PERFORM] sequence scan problem

2008-06-30 Thread John Beaver
Ok, here's the explain analyze result. Again, this is Postgres 8.3.3 and I vacuumed-analyzed both tables directly after they were created. # explain analyze select fls.function_verified, fls.score, fls.go_category_group_ref, fs1.gene_ref, fs1.function_verified_exactly, fs2.gene_ref, fs2.funct

Re: [PERFORM] sequence scan problem

2008-06-29 Thread Tom Lane
John Beaver <[EMAIL PROTECTED]> writes: > Can anyone explain this? There should only ever be a maximum of about 50 > rows returned when the query is executed. Is the estimate that 197899 rows of gene_prediction_view have go_term_ref = 2 about right? If not, then we need to talk about fixing your

Re: [PERFORM] sequence scan problem

2008-06-29 Thread John Beaver
Oh, and the version is 8.3.3. Jeremy Harris wrote: John Beaver wrote: I'm having a strange problem with a query. The query is fairly simple, with a few constants and two joins. All relevant columns should be indexed, and I'm pretty sure there aren't any type conversion issues. But the query p

Re: [PERFORM] sequence scan problem

2008-06-29 Thread John Beaver
Jeremy Harris wrote: John Beaver wrote: I'm having a strange problem with a query. The query is fairly simple, with a few constants and two joins. All relevant columns should be indexed, and I'm pretty sure there aren't any type conversion issues. But the query plan includes a fairly heavy s

Re: [PERFORM] sequence scan problem

2008-06-29 Thread Jeremy Harris
John Beaver wrote: I'm having a strange problem with a query. The query is fairly simple, with a few constants and two joins. All relevant columns should be indexed, and I'm pretty sure there aren't any type conversion issues. But the query plan includes a fairly heavy seq scan. The only possib

[PERFORM] sequence scan problem

2008-06-29 Thread John Beaver
I'm having a strange problem with a query. The query is fairly simple, with a few constants and two joins. All relevant columns should be indexed, and I'm pretty sure there aren't any type conversion issues. But the query plan includes a fairly heavy seq scan. The only possible complication is