From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hotmail <crajac66@hotmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Is it possible to log long running recursive/internal postgresql queries?
Date: Fri, 17 Feb 2023 13:28:00 -0500
Message-ID: <2713826.1676658480@sss.pgh.pa.us> (raw)
In-Reply-To: <MW4PR11MB6838BAF2DF065F88CD5EE301D7A19@MW4PR11MB6838.namprd11.prod.outlook.com>
References: <ddc10360-1072-4e3d-9584-436cdb7d4d82@Spark>
<MW4PR11MB6838BAF2DF065F88CD5EE301D7A19@MW4PR11MB6838.namprd11.prod.outlook.com>
Hotmail <crajac66@hotmail.com> writes:
> If it is possible to log long running internal queries as outlined above any guidance would be appreciated.
Either auto_explain or pg_stat_statements could have helped you
with that, I think. I believe (without having tested) that if
configured to track nested statements they would perceive the
FK enforcement query as a separate statement to track.
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, crajac66@hotmail.com
Subject: Re: Is it possible to log long running recursive/internal postgresql queries?
In-Reply-To: <2713826.1676658480@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