Re: Temparary disable constraint

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Hubert FONGARNAND <informatique(dot)internet(at)fiducial(dot)fr>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Temparary disable constraint
Date: 2007-01-17 03:02:34
Message-ID: 200701170302.l0H32Yn23178@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hubert FONGARNAND wrote:
> Hi,
>
> Is there a way to temporary disable a constraint (without drop and
> recreating it) in postgresql?

Sure, try ALTER TABLE ... DISABLE TRIGGER for the constraint trigger
name.

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-01-17 03:24:10 Re: Idea for fixing the Windows fsync problem
Previous Message Takayuki Tsunakawa 2007-01-17 02:27:33 What is the motivation of include directive and configuration files outside PGDATA