pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: Robert Creager <robertc@spectralogic.com>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: Need help identifying a periodic performance issue.
Date: Wed, 17 Nov 2021 14:28:50 -0500
Message-ID: <2736634.1637177330@sss.pgh.pa.us> (raw)
In-Reply-To: <20211117190038.GB17618@telsasoft.com>
References: <3A76761B-3DDD-4A3C-B791-E73107AFC9A2@spectralogic.com>
	<CA+hUKG+iKkdeS9g1=866pypHZwPMQL2ho+oFWLSpRjV=-PvuCg@mail.gmail.com>
	<0C3B1B2B-6571-477D-A89C-6FA7B6259840@spectralogic.com>
	<20211117190038.GB17618@telsasoft.com>

Justin Pryzby <pryzby@telsasoft.com> writes:
> It shows that the process is running FK triggers.

Indeed, and doing a seqscan therein.  Normally I'd suppose that
this reflects a lack of an index, but RI_FKey_check should always
be doing something that matches the referenced table's unique
constraint, so why isn't it using that?

			regards, tom lane





view thread (28+ messages)  latest in thread

Message-ID: <2736634.1637177330@sss.pgh.pa.us>
Permalink:  ../2736634.1637177330@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2736634.1637177330@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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pryzby@telsasoft.com, robertc@spectralogic.com, thomas.munro@gmail.com, pgsql-performance@lists.postgresql.org
  Subject: Re: Need help identifying a periodic performance issue.
  In-Reply-To: <2736634.1637177330@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