Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqi6Y-0006tC-4Q for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Mar 2017 15:23:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cqi6X-0007Qt-Nb for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Mar 2017 15:23:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cqi6W-0007O7-RS for pgsql-bugs@postgresql.org; Wed, 22 Mar 2017 15:23:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cqi6T-0007bz-Cf for pgsql-bugs@postgresql.org; Wed, 22 Mar 2017 15:23:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v2MFNBEX032764; Wed, 22 Mar 2017 11:23:11 -0400 From: Tom Lane To: aravinth.s@vortexindia.co.in cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14597: Delay in query execution In-reply-to: <20170322130503.1424.63369@wrigleys.postgresql.org> References: <20170322130503.1424.63369@wrigleys.postgresql.org> Comments: In-reply-to aravinth.s@vortexindia.co.in message dated "Wed, 22 Mar 2017 13:05:03 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <32762.1490196191.1@sss.pgh.pa.us> Date: Wed, 22 Mar 2017 11:23:11 -0400 Message-ID: <32763.1490196191@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 aravinth.s@vortexindia.co.in writes: > The following bug has been logged on the website: > Bug reference: 14597 > Logged by: Aravinth Sundaram > Email address: aravinth.s@vortexindia.co.in > PostgreSQL version: Unsupported/Unknown > Operating system: Windows Server 2008 > Description: > A simple delete query performed on a table with 3000 rows took almost 2 hrs > and 40 mins. The table was vacuumed before executing the query. SQL Server > was running in the same machine. What could be the reason for the delay? This is (a) probably not a bug, and (b) entirely undiagnosable from the amount of information you've given. For help with asking answerable questions, see https://wiki.postgresql.org/wiki/Slow_Query_Questions (But, FWIW, a common reason for slow deletes is a foreign key referencing this table, where the referencing column is unindexed. Or maybe the delete was just blocked on somebody's exclusive lock?) regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs