pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julien Rouhaud <rjuju123@gmail.com>
To: Christophe Pettus <xof@thebuild.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: EXPLAIN and FK references?
Date: Thu, 12 Jan 2023 14:42:59 +0800
Message-ID: <20230112064259.4rrky3x54o72cefa@jrouhaud> (raw)
In-Reply-To: <B82BDD68-899B-4BB6-BD9F-43DEBF09BAE6@thebuild.com>
References: <269a6794-aa20-283d-bbc4-8cddaa2038de@gmail.com>
	<899474.1673503646@sss.pgh.pa.us>
	<B82BDD68-899B-4BB6-BD9F-43DEBF09BAE6@thebuild.com>

On Wed, Jan 11, 2023 at 10:13:11PM -0800, Christophe Pettus wrote:
>
> Also, IIRC, the SELECTs generated to do foreign key checks do appear in
> pg_stat_statements, so that might provide a guide to ones that are consuming
> an unusually large amount of resources.

Yes, but you need to have pg_stat_statements.track = all configured for that,
which isn't the default value (and requires superuser privileges to change).





view thread (8+ messages)  latest in thread

Message-ID: <20230112064259.4rrky3x54o72cefa@jrouhaud>
Permalink:  ../20230112064259.4rrky3x54o72cefa@jrouhaud/
Also on:    postgresql.org/message-id/20230112064259.4rrky3x54o72cefa@jrouhaud

 · 

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: rjuju123@gmail.com, xof@thebuild.com, tgl@sss.pgh.pa.us, ronljohnsonjr@gmail.com
  Subject: Re: EXPLAIN and FK references?
  In-Reply-To: <20230112064259.4rrky3x54o72cefa@jrouhaud>
  References: <269a6794-aa20-283d-bbc4-8cddaa2038de@gmail.com> <899474.1673503646@sss.pgh.pa.us> <B82BDD68-899B-4BB6-BD9F-43DEBF09BAE6@thebuild.com> <20230112064259.4rrky3x54o72cefa@jrouhaud>

* 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