Re: Hypothetical suggestions for planner, indexing

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Hypothetical suggestions for planner, indexing
Date: 2003-05-06 15:33:41
Message-ID: 1052235221.30177.26.camel@camel
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

On Tue, 2003-05-06 at 00:45, Tom Lane wrote:
> Josh Berkus <josh(at)agliodbs(dot)com> writes:
> > The reason that I mention EXISTS is because that's where the lack of
> > cross-column corellation is most dramatic; the planner seems to estimate a
> > flat 50% for EXISTS clauses regardless of the content.
>
> No "seems to" about that one: see src/backend/optimizer/path/clausesel.c
>
> else if (is_subplan(clause))
> {
> /*
> * Just for the moment! FIX ME! - vadim 02/04/98
> */
> s1 = (Selectivity) 0.5;
> }
>
> Patches to improve this are welcome ;-). But I'm not at all sure how to
> write something that would extract a reliable selectivity estimate from
> a subplan.
>

given that we have so few GUC variables...

would there be any merit in adding one that would allow folks to change
this assumption?

Robert Treat

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-05-06 16:24:45 Re: 7.4 features list
Previous Message Steve Crawford 2003-05-06 15:32:18 Re: 7.4 features list

Browse pgsql-performance by date

  From Date Subject
Next Message scott.marlowe 2003-05-06 18:12:51 Re: Looking for a cheap upgrade (RAID)
Previous Message Stephan Szabo 2003-05-06 14:39:57 Re: [ADMIN] A query with performance problems.