Re: [HACKERS] Re: Performance degradation in PostgreSQL 7.1beta3 vs

2001-01-17 Thread Hannu Krosing
"Robert E. Bruccoleri" wrote: > > > > > what are the cost estimates when you run explain with seqscan disabled ? > > do => SET ENABLE_SEQSCAN TO OFF; > > see: > > >(http://www.postgresql.org/devel-corner/docs/admin/runtime-config.htm#RUNTIME-CONFIG-OPTIMIZER) > > Here's the result from EXPLAIN:

Re: [HACKERS] Re: Performance degradation in PostgreSQL 7.1beta3 vs

2001-01-17 Thread Robert E. Bruccoleri
Dear Hannu, > > "Robert E. Bruccoleri" wrote: > > > > Dear Hannu, > > > > > > "Robert E. Bruccoleri" wrote: > > > > > > > > explain select count(*) from comparisons_4 where code = 80003; > > > > NOTICE: QUERY PLAN: > > > > > > > > Aggregate (cost=15659.29..15659.29 rows=1 width=0) > > > > ->

Re: [HACKERS] Re: Performance degradation in PostgreSQL 7.1beta3 vs

2001-01-17 Thread Hannu Krosing
"Robert E. Bruccoleri" wrote: > > Dear Hannu, > > > > "Robert E. Bruccoleri" wrote: > > > > > > explain select count(*) from comparisons_4 where code = 80003; > > > NOTICE: QUERY PLAN: > > > > > > Aggregate (cost=15659.29..15659.29 rows=1 width=0) > > > -> Seq Scan on comparisons_4 (cost=0.

Re: [HACKERS] Re: Performance degradation in PostgreSQL 7.1beta3 vs

2001-01-17 Thread Robert E. Bruccoleri
Dear Hannu, > > "Robert E. Bruccoleri" wrote: > > > > explain select count(*) from comparisons_4 where code = 80003; > > NOTICE: QUERY PLAN: > > > > Aggregate (cost=15659.29..15659.29 rows=1 width=0) > > -> Seq Scan on comparisons_4 (cost=0.00..15640.81 rows=7391 width=0) > > > > EXPLAIN

Re: [HACKERS] Re: Performance degradation in PostgreSQL 7.1beta3 vs 6.5.3

2001-01-17 Thread Hannu Krosing
"Robert E. Bruccoleri" wrote: > > explain select count(*) from comparisons_4 where code = 80003; > NOTICE: QUERY PLAN: > > Aggregate (cost=15659.29..15659.29 rows=1 width=0) > -> Seq Scan on comparisons_4 (cost=0.00..15640.81 rows=7391 width=0) > > EXPLAIN What is the type of field "code

Re: AW: [HACKERS] Re: Performance degradation in PostgreSQL 7.1beta3 vs 6.5.3

2001-01-17 Thread Tom Lane
Zeugswetter Andreas SB <[EMAIL PROTECTED]> writes: > More importantly, PostgreSQL 6.5.3 works very, very well without > VACUUM'ing. >> >> 6.5 effectively assumes that "foo = constant" will select exactly one >> row, if it has no statistics to prove otherwise. > I thought we had agreed upon a de

AW: [HACKERS] Re: Performance degradation in PostgreSQL 7.1beta3 vs 6.5.3

2001-01-17 Thread Zeugswetter Andreas SB
> > More importantly, PostgreSQL 6.5.3 works very, very well without > > VACUUM'ing. > > 6.5 effectively assumes that "foo = constant" will select exactly one > row, if it has no statistics to prove otherwise. I thought we had agreed upon a default that would still use the index in the above ca

[HACKERS] Re: Performance degradation in PostgreSQL 7.1beta3 vs 6.5.3

2001-01-16 Thread Robert E. Bruccoleri
Dear Tom, > You can't afford to run a VACUUM ANALYZE even once in the lifetime of > the table? Not very often at best, and certainly not routinely. Some of my tables exceed 10GB and have multiple indices. However, to test your suggestion, I modified my performance test script to "VACUUM ANALYZE

[HACKERS] Re: Performance degradation in PostgreSQL 7.1beta3 vs 6.5.3

2001-01-16 Thread mlw
"Robert E. Bruccoleri" wrote: You can try starting postmaster with the "-o -fs" option. This will disable sequential scans if there is an index. There is also an environment variable you can set, prior to the operation. I have run into this same problem. > Dear Tom, > I am writing to

[HACKERS] Re: Performance degradation in PostgreSQL 7.1beta3 vs 6.5.3

2001-01-16 Thread Tom Lane
[EMAIL PROTECTED] (Robert E. Bruccoleri) writes: > I have followed the discussion in pgsql-hackers over the previous > months and others have noted some performance problems, and the response > has typically been to VACUUM the tables. Unfortunately, this is not a > practical option for my ap