Re: [SQL] Technique for turning time ranges into a graph

2007-06-20 Thread A. Kretschmer
am Wed, dem 20.06.2007, um 22:03:56 -0700 mailte Bryce Nesbitt folgendes: > I have a bunch of data which is expressed in terms of start and stop dates, > e.g.: > > ++ > | Member | Start | Stop

[SQL] Technique for turning time ranges into a graph

2007-06-20 Thread Bryce Nesbitt
I have a bunch of data which is expressed in terms of start and stop dates, e.g.: Member Start Stop Fred 2007-01-01 2007-05-01 Joe 2005-05-04 2007-04-01

Re: [SQL] Constraint exclusion

2007-06-20 Thread Tom Lane
"Fernando Hevia" <[EMAIL PROTECTED]> writes: > -- Constraints: one partition per month > ALTER TABLE table_p01 ADD CONSTRAINT chk_table_p01_setuptime CHECK > (EXTRACT(MONTH FROM setuptime) = 1::DOUBLE PRECISION); The planner is not able to do anything with these constraints, other than if there i

[SQL] Constraint exclusion

2007-06-20 Thread Fernando Hevia
It seems constraint exclusion is not working with my partitioned tables and the rules I wrote. This is my partition deployment: -- Master table CREATE TABLE table_master ( setuptime timestamp with time zone NOT NULL, ... }; -- Partitions CREATE TABLE table_p01 INHERITS (table_mas