pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Li EF Zhang <bjzhangl@cn.ibm.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: SQL to query running transactions with subtransactions that exceeds 64
Date: Wed, 06 Jan 2021 05:49:08 +0100
Message-ID: <7e49c83b1179e052b415eb0f8f78f5f2c0dec734.camel@cybertec.at> (raw)
In-Reply-To: <OFDF3972D7.C7B31878-ON00258654.003A6B40-00258654.003ACE1D@notes.na.collabserv.com>
References: <OFDF3972D7.C7B31878-ON00258654.003A6B40-00258654.003ACE1D@notes.na.collabserv.com>

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






view thread (4+ messages)  latest in thread

Message-ID: <7e49c83b1179e052b415eb0f8f78f5f2c0dec734.camel@cybertec.at>
Permalink:  ../7e49c83b1179e052b415eb0f8f78f5f2c0dec734.camel@cybertec.at/
Also on:    postgresql.org/message-id/7e49c83b1179e052b415eb0f8f78f5f2c0dec734.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, bjzhangl@cn.ibm.com
  Subject: Re: SQL to query running transactions with subtransactions that exceeds 64
  In-Reply-To: <7e49c83b1179e052b415eb0f8f78f5f2c0dec734.camel@cybertec.at>
  References: <OFDF3972D7.C7B31878-ON00258654.003A6B40-00258654.003ACE1D@notes.na.collabserv.com> <7e49c83b1179e052b415eb0f8f78f5f2c0dec734.camel@cybertec.at>

* 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