pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mladen Gogala <gogala.mladen@gmail.com>
To: pgsql-performance@lists.postgresql.org
Subject: Re: [EXT] Re: Troubleshooting a long running delete statement
Date: Wed, 6 Oct 2021 21:30:59 -0400
Message-ID: <0ac28d5c-43f4-0766-cd65-d6b1583ef7fa@gmail.com> (raw)
In-Reply-To: <DM6PR03MB4332A5461B801B904DA275F6FAB09@DM6PR03MB4332.namprd03.prod.outlook.com>
References: <DM6PR03MB43323A813F2489B43B50195AFAB09@DM6PR03MB4332.namprd03.prod.outlook.com>
	<20211006192000.GJ27491@telsasoft.com>
	<DM6PR03MB4332A5461B801B904DA275F6FAB09@DM6PR03MB4332.namprd03.prod.outlook.com>


On 10/6/21 16:32, Dirschel, Steve wrote:
> postgres=# explain (analyze) delete from t;  Delete on t 

I would try explain (analyze, timing, buffers). That would also give you 
the timing of each step so you can figure which one takes the longes.

Regards


-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com

view thread (11+ messages)  latest in thread

Message-ID: <0ac28d5c-43f4-0766-cd65-d6b1583ef7fa@gmail.com>
Permalink:  ../0ac28d5c-43f4-0766-cd65-d6b1583ef7fa@gmail.com/
Also on:    postgresql.org/message-id/0ac28d5c-43f4-0766-cd65-d6b1583ef7fa@gmail.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: gogala.mladen@gmail.com, pgsql-performance@lists.postgresql.org
  Subject: Re: [EXT] Re: Troubleshooting a long running delete statement
  In-Reply-To: <0ac28d5c-43f4-0766-cd65-d6b1583ef7fa@gmail.com>

* 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