Re: constraint partition issue

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Helen_Yelluas(at)McAfee(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: constraint partition issue
Date: 2011-03-23 01:25:24
Message-ID: 11766.1300843524@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<Helen_Yelluas(at)McAfee(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Noah Misch 2011-03-23 02:46:55 Re: autovacuum issue after upgrade to 9.0.1
Previous Message Adrian Klaver 2011-03-23 00:38:18 Re: Trigger Function return values