Re: [GENERAL] Partitioning attempts

2005-10-31 Thread Mikael Carneholm
> 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. Ah - constraint_exclusion is the correct param, not enable_constraint_exclusion (as stated in http://www

Re: [GENERAL] Partitioning attempts

2005-10-31 Thread Simon Riggs
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 query only scans the relevant > partition(s), as it's not possible to create a conditional SELECT rule using > an INS

[GENERAL] Partitioning attempts

2005-10-31 Thread Mikael Carneholm
Hi, I did a partially successful attempt at creating a partitioned table + two subpartitions in Pg8.1b inspired by the method used by Bizgres (see http://www.bizgres.org/assets/docs/html/tblpartn.htm) I.e: CREATE TABLE parttest.mastertab ( id serial not null, datecol date not null, CONST