Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id D85C01337B39 for ; Tue, 30 Nov 2010 02:17:11 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 33060-05 for ; Tue, 30 Nov 2010 06:17:04 +0000 (UTC) X-Greylist: delayed 00:18:00.93993 by SQLgrey-1.7.6 Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mail.postgresql.org (Postfix) with ESMTP id 3AD621335B36 for ; Tue, 30 Nov 2010 02:17:04 -0400 (AST) Received: from sam.nabble.com ([192.168.236.26]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1PNJEz-0006BU-Si for pgsql-sql@postgresql.org; Mon, 29 Nov 2010 21:59:01 -0800 Date: Mon, 29 Nov 2010 21:59:01 -0800 (PST) From: manidegr8 To: pgsql-sql@postgresql.org Message-ID: <1291096741884-3285654.post@n5.nabble.com> Subject: Deleting entries from multiple tables MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.777 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RFC_ABUSE_POST=0.001, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201011/84 X-Sequence-Number: 34822 i am trying to run a query but its not working may be due to constraint conflicts i have table A, B and C B and C have a foreign key linked with A's primary key so i want to delete an entry from A for that i hav to delete child records first can u design a query which wont conflict the constraints..? Thanks... Regards. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Deleting-entries-from-multiple-tables-tp3285654p3285654.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com.