Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id EB16F1337B77 for ; Tue, 30 Nov 2010 06:00:15 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 04508-07 for ; Tue, 30 Nov 2010 10:00:08 +0000 (UTC) X-Greylist: from auto-whitelisted 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 6DC261337B51 for ; Tue, 30 Nov 2010 06:00:06 -0400 (AST) Received: from sam.nabble.com ([192.168.236.26]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1PNN0H-0006U0-Fk for pgsql-sql@postgresql.org; Tue, 30 Nov 2010 02:00:05 -0800 Date: Tue, 30 Nov 2010 02:00:05 -0800 (PST) From: manidegr8 To: pgsql-sql@postgresql.org Message-ID: <1291111205481-3285832.post@n5.nabble.com> In-Reply-To: References: <1291096741884-3285654.post@n5.nabble.com> Subject: Re: 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/90 X-Sequence-Number: 34828 yes i know about on delete cascade it automatically delete the child when master is deleted but the database i m working on is not built in this fashion tables r built on default rules so constraints r there i m jus asking to build a procedure or function that taking from the user and deletes the child and master records against that input... i hav tried it on pgadmin 111 but its not working... please guide me -- View this message in context: http://postgresql.1045698.n5.nabble.com/Deleting-entries-from-multiple-tables-tp3285654p3285832.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com.