Re: Questions about horizontal partitioning - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Questions about horizontal partitioning
Date
Msg-id 20070109171932.GC19523@wolff.to
Whole thread Raw
In response to Re: Questions about horizontal partitioning  (Chander Ganesan <chander@otg-nc.com>)
List pgsql-general
On Tue, Jan 09, 2007 at 08:28:29 -0500,
  Chander Ganesan <chander@otg-nc.com> wrote:
> It would.  A query that uses an inner join implies that a matching entry
> must exist in both tables - so the join must occur, otherwise you could
> be returning rows that don't satisfy the join condition.

While this might not be worth doing, a foreign key constraint could be used
to establish the existance of the matching row, so that you wouldn't actually
need to look in the other table to verify that if you didn't need any of the
other columns in the other table. There will be some tricky cases for this,
such as when there are deferred constraints or when updating the foreign key
field.

pgsql-general by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: SELECT INTO using Views?
Next
From: Rafal Pietrak
Date:
Subject: Re: TRIGGER BEFORE INSERT