From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Long running queries
Date: Wed, 25 Jan 2023 12:02:29 -0600
Message-ID: <05d32b82-e944-15d4-b769-464e7c21175f@gmail.com> (raw)
In-Reply-To: <CWXP123MB395950C601C6F6D02AFA913EA0CE9@CWXP123MB3959.GBRP123.PROD.OUTLOOK.COM>
References: <CWXP123MB395950C601C6F6D02AFA913EA0CE9@CWXP123MB3959.GBRP123.PROD.OUTLOOK.COM>
On 1/25/23 11:55, Clive Swan wrote:
> Greetings
> SQL Server has a handy SQL "tool" to spot expensive and/or long running
> queries.
>
> Is there a similar query/tool for Postgresql??
pg_stat_activity lists all of the *currently running* queries (among the
columns in the table are query string, database name, user name, transaction
start time and query start time).
--
Born in Arizona, moved to Babylonia.
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: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Long running queries
In-Reply-To: <05d32b82-e944-15d4-b769-464e7c21175f@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