Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YYeY6-0002x9-GH for pgsql-admin@arkaria.postgresql.org; Thu, 19 Mar 2015 17:48:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YYeY5-0000J7-N4 for pgsql-admin@arkaria.postgresql.org; Thu, 19 Mar 2015 17:48:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YYeY4-0000In-Gq for pgsql-admin@postgresql.org; Thu, 19 Mar 2015 17:48:00 +0000 Received: from resqmta-ch2-01v.sys.comcast.net ([2001:558:fe21:29:69:252:207:33]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YYeXz-0002EA-4I for pgsql-admin@postgresql.org; Thu, 19 Mar 2015 17:47:58 +0000 Received: from resomta-ch2-11v.sys.comcast.net ([69.252.207.107]) by resqmta-ch2-01v.sys.comcast.net with comcast id 5Vno1q0072Ka2Q501VnqGy; Thu, 19 Mar 2015 17:47:50 +0000 Received: from jerry.enova.com ([38.98.177.132]) by resomta-ch2-11v.sys.comcast.net with comcast id 5Vld1q00b2rmZlA01Vlfit; Thu, 19 Mar 2015 17:45:48 +0000 Received: by jerry.enova.com (Postfix, from userid 1001) id 9EFE67401EB; Thu, 19 Mar 2015 12:45:37 -0500 (CDT) From: Jerry Sievers To: Raghavendra Cc: Ankur Kaushik , pgsql-admin Subject: Re: Posgres Query for Foreign Key Check References: <000001d061da$6d0567e0$471037a0$@trimax.in> Date: Thu, 19 Mar 2015 12:45:37 -0500 In-Reply-To: (Raghavendra's message of "Thu, 19 Mar 2015 14:50:57 +0530") Message-ID: <86wq2ckhj2.fsf@jerry.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1426787270; bh=MHm3IqYEQENIurO0XxvuaNhAECXriyaOAE2Ze77WFnc=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=v+2s5K1ZwcsgcTnuqE7VRRHLRAr4Bv78KtPxPGIIs8sO26o6I9UNJUVpv0XTjbjze txcMZmoPDfqLZbwHxQLMDp/q19D71n0HcdZScZrtCQpwmcJTpR61RNcK+IONJT09a3 i6ouHjM2iBoiU/bozkqASsSptpv3yQK1CraZBEq3d/8SMeXgwOhhJvVt6zudlDsNUe qzFmVY8jM/Lxw4NS0+UUYv8xnxn2VqNgElYlbvVbAI0lDC9gplXFjF3i5hYu6hhLXQ udpMgOXBA8aFnoLhZDrtSde6pfQYTT7pl5Q9T+caNY0ybRgYSnEvfDCXEcOvoRIEtx /4imU8jX5dMIA== X-Pg-Spam-Score: -1.5 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Raghavendra writes: > On Thu, Mar 19, 2015 at 5:49 AM, Ankur Kaushik 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 intended recipient. Any review, reliance or > distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, 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 -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin