Re: constraint partition issue - Mailing list pgsql-general

From Tom Lane
Subject Re: constraint partition issue
Date
Msg-id 11766.1300843524@sss.pgh.pa.us
Whole thread Raw
In response to constraint partition issue  (<Helen_Yelluas@McAfee.com>)
List pgsql-general
<Helen_Yelluas@McAfee.com> writes:
> CREATE TABLE summary_total
> (
>   counter bigint DEFAULT 0,
>   destgeo_id integer DEFAULT 1,
>   direction integer DEFAULT 1,
>   mlapp_id integer DEFAULT 1
> )

> CREATE TABLE summary_daily_data
> (
> )
> INHERITS (summary_total)

> CREATE TABLE summ_dly_1505500
> (
> )
> INHERITS (summary_daily_data)
> ALTER TABLE summ_dly_1505500
>   ADD CONSTRAINT ch_date CHECK
> (datex >= '2011-03-22 00:00:00'::timestamp without time zone AND
>  datex < '2011-03-23 00:00:00'::timestamp without time zone);

Um ... datex is coming from where, again?

            regards, tom lane

pgsql-general by date:

Previous
From:
Date:
Subject: constraint partition issue
Next
From: Noah Misch
Date:
Subject: Re: autovacuum issue after upgrade to 9.0.1