From: Tom Lane <tgl@sss.pgh.pa.us>
To: aravinth.s@vortexindia.co.in
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14597: Delay in query execution
Date: Wed, 22 Mar 2017 11:23:11 -0400
Message-ID: <32763.1490196191@sss.pgh.pa.us> (raw)
In-Reply-To: <20170322130503.1424.63369@wrigleys.postgresql.org>
References: <20170322130503.1424.63369@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, aravinth.s@vortexindia.co.in
Subject: Re: BUG #14597: Delay in query execution
In-Reply-To: <32763.1490196191@sss.pgh.pa.us>
References: <20170322130503.1424.63369@wrigleys.postgresql.org> <32763.1490196191@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox