Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uq7ik-0008Ik-Qc for pgsql-bugs@arkaria.postgresql.org; Fri, 21 Jun 2013 20:14:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Uq7ij-0006uI-Ld for pgsql-bugs@arkaria.postgresql.org; Fri, 21 Jun 2013 20:14:09 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uq4M0-0004up-Ff for pgsql-bugs@postgresql.org; Fri, 21 Jun 2013 16:38:28 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uq4Ly-0005q2-K4 for pgsql-bugs@postgresql.org; Fri, 21 Jun 2013 16:38:27 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Uq4Ly-0004wM-Ef for pgsql-bugs@postgresql.org; Fri, 21 Jun 2013 16:38:26 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1Uq4Lt-0000mt-4Q for pgsql-bugs@postgresql.org; Fri, 21 Jun 2013 16:38:21 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8246: Delete Cascade causing performance issues To: pgsql-bugs@postgresql.org From: msandeep27@gmail.com Message-Id: Date: Fri, 21 Jun 2013 16:38:21 +0000 X-Pg-Spam-Score: 0.2 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8246 Logged by: sandeep Email address: msandeep27@gmail.com PostgreSQL version: 8.4.17 Operating system: windows 7 Description: Hi All, I have a database containing 10 tables say as t1 ,t2,t3,t4......t10.There is a column in t1 which is primary key and that primary key to other tables (i.e t2 t3.... t10). Now when ingesting data i am able to ingest it around nearly able 1 lakh rows in secs. now i want to delete the primary key from t1 so that the data other tables data get deleted.But since the data is huge approx 1.5 rows get affected its taking 6 minutes to delete it. Is there something that can be done . -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs