pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: EXPLAIN and FK references?
Date: Thu, 12 Jan 2023 02:11:55 -0500
Message-ID: <905814.1673507515@sss.pgh.pa.us> (raw)
In-Reply-To: <431108a8-d814-848e-202b-e3a8e78ea39a@gmail.com>
References: <269a6794-aa20-283d-bbc4-8cddaa2038de@gmail.com>
	<899474.1673503646@sss.pgh.pa.us>
	<431108a8-d814-848e-202b-e3a8e78ea39a@gmail.com>

Ron <ronljohnsonjr@gmail.com> writes:
> On 1/12/23 00:07, Tom Lane wrote:
>> No, not directly, but you could look at EXPLAIN ANALYZE to see which
>> of the RI triggers is eating the time.

> Good to know, but even deleting one day of data (90,000 rows using an index 
> scan on the date field) takes forever.

So delete a relatively small number of rows, and do it with
EXPLAIN *ANALYZE*.  Without ANALYZE, you aren't getting any
relevant data.

			regards, tom lane





view thread (8+ messages)  latest in thread

Message-ID: <905814.1673507515@sss.pgh.pa.us>
Permalink:  ../905814.1673507515@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/905814.1673507515@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, ronljohnsonjr@gmail.com
  Subject: Re: EXPLAIN and FK references?
  In-Reply-To: <905814.1673507515@sss.pgh.pa.us>
  References: <269a6794-aa20-283d-bbc4-8cddaa2038de@gmail.com> <899474.1673503646@sss.pgh.pa.us> <431108a8-d814-848e-202b-e3a8e78ea39a@gmail.com> <905814.1673507515@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