Re: SQL to query running transactions with subtransactions that exceeds 64

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: SQL to query running transactions with subtransactions that exceeds 64
Дата
Msg-id 7e49c83b1179e052b415eb0f8f78f5f2c0dec734.camel@cybertec.at
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: H
Дата:
Сообщение: Re: PostgreSQL 13 on CentOS 7
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: Declarative partitioning and automatically generated row-IDs using BIGSERIAL