AW: More Performance - Mailing list pgsql-hackers

From Zeugswetter Andreas SB
Subject AW: More Performance
Date
Msg-id 219F68D65015D011A8E000006F8590C604AF7D9B@sdexcsrv1.f000.d0188.sd.spardat.at
Whole thread Raw
List pgsql-hackers
> > IMHO this is somewhat non-optimal. In the absence of information
> > to the contrary, PostgreSQL should default to using an index if
> > it might be appropriate, not ignore it.
> 
> This is an interesting idea.  So you are saying that if a 
> column has no
> vacuum analyze statistics, assume it is unique?  Or are you talking
> about a table that has never been vacuumed?  Then we assume it is a
> large table.  Interesting.  It would help some queries, but 
> hurt others.

It would help where it counts, since if the table is small it won't matter
that much
wheather we use the index or not. For small tables we are talking about
subsecond
differences, whereas for large tables we are talking about minutes or hours.

> We have gone around and around on what the default stats should be.
> Tom Lane can comment on this better than I can.

I think Tom has done a good job, it is this special query that seems to
fail.

Andreas


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Perl 5.6.0
Next
From: Bruce Momjian
Date:
Subject: Re: interactive pgsql book