Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 69F291337B7D; Thu, 23 Dec 2010 11:23:28 -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 03954-02; Thu, 23 Dec 2010 15:23:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 427271337B4E; Thu, 23 Dec 2010 11:23:19 -0400 (AST) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Thu, 23 Dec 2010 09:23:19 -0600 Message-Id: <4D1315050200002500038A6E@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Thu, 23 Dec 2010 09:23:17 -0600 From: "Kevin Grittner" To: "Atul Kumar" , "pgsql-bugs@postgresql.org" , "pgsql-general@postgresql.org" , "pgsql-sql@postgresql.org" Subject: Re: Issue while using PostgreSql 8.4. References: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201012/171 X-Sequence-Number: 28977 Atul Kumar wrote: > My issue is, first time I am creating the table and inserting some > rows of data. After doing some logic going to delete that table . > I am observing application is getting hang while executing > statement.execute(). It's taking a long time to run which statement, a DELETE of all rows in a table? This isn't sounding much like a PostgreSQL bug at this point, but with so little information, it is hard to tell for sure. Please review this page: http://wiki.postgresql.org/wiki/Guide_to_reporting_problems As a "shot in the dark" -- if the statement which is taking a long time is the DELETE, and you want to delete all rows in the table, try TRUNCATE TABLE. -Kevin