Skip site navigation (1) Skip section navigation (2)

Re: join selectivity

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: strk(at)refractions(dot)net
Cc: Mark Cave-Ayland <m(dot)cave-ayland(at)webbased(dot)co(dot)uk>,pgsql-hackers(at)postgresql(dot)org, postgis-devel(at)postgis(dot)refractions(dot)net
Subject: Re: join selectivity
Date: 2004-12-23 15:13:03
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
strk(at)refractions(dot)net writes:
> On Thu, Dec 23, 2004 at 10:01:33AM -0500, Tom Lane wrote:
>> Right.  This amounts to assuming that the join conditions and the
>> restriction conditions are independent, which of course is bogus,
>> but we really don't have enough information to do better.

> Doesn't JOINSEL have access to RESTRICTSEL output for REL1 and REL2 ?

You could probably compare the fields of the RelOptInfo structures,
but what are you going to do with it?  AFAICS you *should not* make
the join selectivity depend on that.

			regards, tom lane

In response to


pgsql-hackers by date

Next:From: Tom LaneDate: 2004-12-23 15:35:52
Subject: Re: Connection without database name
Previous:From: strkDate: 2004-12-23 15:10:03
Subject: Re: join selectivity

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group