Bruce Momjian <[EMAIL PROTECTED]> writes:
> What I am more concerned about is a join that uses the most common
> value. We do an index scan in that case.
No, we do whichever plan looks cheapest. Again, it's all about
statistics.
Right now, eqjoinsel() is just a stub that returns a constant
selectivity estimate. It might be useful to compute some more
sophisticated value based on pg_statistic entries for the two
columns, but right now I doubt you could tell much. Should keep
the join case in mind when we extend the statistics...
regards, tom lane
- Re: [HACKERS] Performance on inserts Bruce Momjian
- Re: [HACKERS] Performance on inserts Tom Lane
- Re: [HACKERS] Performance on inserts Bruce Momjian
- Re: [HACKERS] Performance on inserts Tom Lane
- Re: [HACKERS] Performance on inserts Bruce Momjian
- Re: [HACKERS] Performance on inserts Tom Lane
- Re: [HACKERS] Performance on inserts Bruce Momjian
- Re: [HACKERS] Performance on inser... Tom Lane
- Re: [HACKERS] Performance on i... Bruce Momjian
- Re: [HACKERS] Performance on i... Tom Lane
- Re: [HACKERS] Performance on i... Bruce Momjian
- Re: [HACKERS] Performance on i... Tom Lane
- Re: [HACKERS] Performance on i... Bruce Momjian
- Re: [HACKERS] Performance on i... Tom Lane
- Re: [HACKERS] Performance on i... Bruce Momjian
- Re: [HACKERS] Performance on inserts Bruce Momjian
- Re: [HACKERS] Performance on inserts Bruce Momjian
- RE: [HACKERS] Performance on inserts Franck Martin
