Re: Questions about horizontal partitioning

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: Chander Ganesan <chander(at)otg-nc(dot)com>, Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: Questions about horizontal partitioning
Date: 2007-01-09 22:57:10
Message-ID: 12306.1168383430@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bruno Wolff III <bruno(at)wolff(dot)to> writes:
> In this case the test would only be applied when no columns were being used
> in a table being joined to. Since that is also an unusual case, if that case
> could be quickly checked for, then it might conceivably be worth doing the
> more expensive test for the proper not null foreign key relation and unique
> constraint.

Yeah. Right offhand I think that would be fairly expensive too :-(.
The problem is that the query *DOES* have a reference to at least one
column of the wide table, namely its join key. So you'd have to
distinguish whether any references appear "above" the join. In the
current planner structure I think that this information is computed,
but not until it's far too late to be removing joins from the tree.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ben 2007-01-09 23:17:56 Re: index creation on 7.3
Previous Message Tom Lane 2007-01-09 22:49:45 Re: Array constructor requires one argument