pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: EXPLAIN and FK references?
Date: Wed, 11 Jan 2023 23:42:04 -0600
Message-ID: <269a6794-aa20-283d-bbc4-8cddaa2038de@gmail.com> (raw)

Pg 12.11

Deletes are slow in one table with many indices and FK references. That's 
not surprising, but it's *VERY* slow, and I'm trying to figure out why.

Is there any EXPLAIN option which shows what "query plans" Pg is using when 
checking FK references (index scan, seq scan, etc) during deletes (and 
inserts and updates)?

-- 
Born in Arizona, moved to Babylonia.

view thread (8+ messages)  latest in thread

Message-ID: <269a6794-aa20-283d-bbc4-8cddaa2038de@gmail.com>
Permalink:  ../269a6794-aa20-283d-bbc4-8cddaa2038de@gmail.com/
Also on:    postgresql.org/message-id/269a6794-aa20-283d-bbc4-8cddaa2038de@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 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-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: EXPLAIN and FK references?
  In-Reply-To: <269a6794-aa20-283d-bbc4-8cddaa2038de@gmail.com>
  References: <269a6794-aa20-283d-bbc4-8cddaa2038de@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