Re: Disabling constraint check

From: Richard Broersma <richard(dot)broersma(at)gmail(dot)com>
To: Salomao Domingos <salomaodomingos(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Disabling constraint check
Date: 2012-09-17 20:42:31
Message-ID: CABvLTWEXfEZXSWRbiKaW=EzpYaWMmBv3hch4CAHqTMn4LKvz0w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, Sep 17, 2012 at 11:58 AM, Salomao Domingos <
salomaodomingos(at)gmail(dot)com> wrote:

> ... however how can I disabling CHECK CONSTRAINT too?
>

From the sub-section on DEFERRABLE NOT DEFERRABLE:
http://www.postgresql.org/docs/9.2/interactive/sql-createtable.html#SQL-CREATETABLE-EXCLUDE

You cannot disable a check constraint.

Perhaps a staging table is advisable here?

--
Regards,
Richard Broersma Jr.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message BACHELART PIERRE (CIS/SCC) 2012-09-20 11:01:15 matching a timestamp field
Previous Message Oliveiros d'Azevedo Cristina 2012-09-17 19:33:43 Re: Disabling constraint check