Re: Posgres Query for Foreign Key Check - Mailing list pgsql-admin

From Jerry Sievers
Subject Re: Posgres Query for Foreign Key Check
Date
Msg-id 86wq2ckhj2.fsf@jerry.enova.com
Whole thread Raw
In response to Re: Posgres Query for Foreign Key Check  (Raghavendra <raghavendra.rao@enterprisedb.com>)
Responses Re: Posgres Query for Foreign Key Check
List pgsql-admin
Raghavendra <raghavendra.rao@enterprisedb.com> writes:

> On Thu, Mar 19, 2015 at 5:49 AM, Ankur Kaushik <ankurk@trimax.in> wrote:
>
>     Hi ,
>
>      
>
>     We are in Process of migration our Database from Mysql to Postgres .
>
>      
>
>     I want ot know How I can disable foreign key check in posgres just as in MySQL set session foreign_key_checks=0;
>
>      
>
> ​Try.​
>
> ​ALTER TABLE table_name DISABLE TRIGGER ALL; 

Yeah but really *good* platforms like MySQL let you totally screw your
whole DB with just one easy command.

Why can't Postgres suck like that?

FWIW


>
> http://www.postgresql.org/docs/9.3/static/sql-altertable.html
>
> ---
> Regards,
> Raghavendra
> EnterpriseDB Corporation
> Blog: http://raghavt.blogspot.com/
>  
>
>     Regards
>
>     Ankur
>
>     DBA | Trimax Infrastructure
>
>     Disclaimer: This e-mail may contain material that is confidential, privileged and product for the sole use of the
intendedrecipient. Any review, reliance or 
>     distribution by others or forwarding without express permission is strictly prohibited. If you are not the
intendedrecipient, please contact the sender or  
>     legal@trimax.in and delete all copies.
>

--
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres.consulting@comcast.net
p: 312.241.7800


pgsql-admin by date:

Previous
From: "Ruth Melendo"
Date:
Subject: How to desconfigure BDR?
Next
From: Jerry Sievers
Date:
Subject: Re: Posgres Query for Foreign Key Check