[prev in list] [next in list] [prev in thread] [next in thread]
List: postgresql-sql
Subject: Re: [SQL] Disabling constraint check
From: Richard Broersma <richard.broersma () gmail ! com>
Date: 2012-09-17 20:42:31
Message-ID: CABvLTWEXfEZXSWRbiKaW=EzpYaWMmBv3hch4CAHqTMn4LKvz0w () mail ! gmail ! com
[Download RAW message or body]
On Mon, Sep 17, 2012 at 11:58 AM, Salomao Domingos <
salomaodomingos@gmail.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.
[Attachment #3 (text/html)]
On Mon, Sep 17, 2012 at 11:58 AM, Salomao Domingos <span dir="ltr"><<a \
href="mailto:salomaodomingos@gmail.com" \
target="_blank">salomaodomingos@gmail.com</a>></span> wrote:<br><div \
class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">
... however how can
I disabling CHECK CONSTRAINT too?<br></blockquote><div><br>From the sub-section on \
DEFERRABLE NOT DEFERRABLE:<br><a \
href="http://www.postgresql.org/docs/9.2/interactive/sql-createtable.html#SQL-CREATETA \
BLE-EXCLUDE">http://www.postgresql.org/docs/9.2/interactive/sql-createtable.html#SQL-CREATETABLE-EXCLUDE</a><br>
<br>You cannot disable a check constraint. <br><br>Perhaps a staging table is \
advisable here?<br> </div></div>-- <br>Regards,<br>Richard Broersma Jr.<br>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic