Re: Partitioning attempts - Mailing list pgsql-general

From Simon Riggs
Subject Re: Partitioning attempts
Date
Msg-id 1130791410.8300.1515.camel@localhost.localdomain
Whole thread Raw
In response to Partitioning attempts  ("Mikael Carneholm" <Mikael.Carneholm@WirelessCar.com>)
List pgsql-general
On Mon, 2005-10-31 at 21:02 +0100, Mikael Carneholm wrote:
> So far so good. Now, the part where it fails to be useful (performance wise) is when you want to make sure a select
queryonly scans the relevant partition(s), as it's not possible to create a conditional SELECT rule using an INSTEAD
select... from ONLY ..., i.e: 

There is no need to do this.

Try doing a select against mastertab and you will see that it only
selects from the correct partitions. Look at constraint_exclusion
parameter, which needs to be set on for this to work.

> Also, we would need UPDATE and DELETE rules, but these are tricky as an update may involve both inserting and
deletingrows (if the row belongs to another child table after the update). 

Not implemented in 8.1

Best Regards, Simon Riggs


pgsql-general by date:

Previous
From: "Daniel Verite"
Date:
Subject: Re: Re: [GENERAL] Sorting problems with SELECT * FROM
Next
From: Scott Marlowe
Date:
Subject: Re: Starting PostgreSQL 8.0.4 with more memory [FreeBSD