pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Dirschel, Steve <steve.dirschel@thomsonreuters.com>
To: pgsql-performance@lists.postgresql.org <pgsql-performance@lists.postgresql.org>
Subject: Re: Troubleshooting a long running delete statement
Date: Wed, 06 Oct 2021 21:48:45 +0200
Message-ID: <c73a8eb00330ce5aa0d35e36d99e73fa5f1b6fc9.camel@cybertec.at> (raw)
In-Reply-To: <DM6PR03MB43323A813F2489B43B50195AFAB09@DM6PR03MB4332.namprd03.prod.outlook.com>
References: <DM6PR03MB43323A813F2489B43B50195AFAB09@DM6PR03MB4332.namprd03.prod.outlook.com>

On Wed, 2021-10-06 at 18:00 +0000, Dirschel, Steve wrote:
> Are there other statistics in Postgres I may have looked at to methodically come to the conclusion that the problem was the missing index on the parent FK column?

You could use the query from my article to find the missing indexes:
https://www.cybertec-postgresql.com/en/index-your-foreign-key/

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (11+ messages)  latest in thread

Message-ID: <c73a8eb00330ce5aa0d35e36d99e73fa5f1b6fc9.camel@cybertec.at>
Permalink:  ../c73a8eb00330ce5aa0d35e36d99e73fa5f1b6fc9.camel@cybertec.at/
Also on:    postgresql.org/message-id/c73a8eb00330ce5aa0d35e36d99e73fa5f1b6fc9.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, steve.dirschel@thomsonreuters.com, pgsql-performance@lists.postgresql.org
  Subject: Re: Troubleshooting a long running delete statement
  In-Reply-To: <c73a8eb00330ce5aa0d35e36d99e73fa5f1b6fc9.camel@cybertec.at>

* 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