Re: SQL to query running transactions with subtransactions that exceeds 64 - Mailing list pgsql-general

From Laurenz Albe
Subject Re: SQL to query running transactions with subtransactions that exceeds 64
Date
Msg-id 7e49c83b1179e052b415eb0f8f78f5f2c0dec734.camel@cybertec.at
Whole thread Raw
List pgsql-general
On Tue, 2021-01-05 at 10:42 +0000, Li EF Zhang wrote:
> I am new to postgresql and sql. I want to check running transactions whose
>  subtransactions exceeds 64. Is there any SQL statement or other method can
>  do this? Thanks!

You may want to read
https://www.cybertec-postgresql.com/en/subtransactions-and-performance-in-postgresql/

You could export a snapshot with pg_export_snapshot() and see if the resulting file
contains the line "sof:1".

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




pgsql-general by date:

Previous
From: H
Date:
Subject: Re: PostgreSQL 13 on CentOS 7
Next
From: Laurenz Albe
Date:
Subject: Re: Declarative partitioning and automatically generated row-IDs using BIGSERIAL