public inbox for [email protected]  
help / color / mirror / Atom feed
From: [email protected]
To: [email protected]
Subject: Commit with wait event on advisory lock!
Date: Tue, 21 Jan 2025 15:48:04 +0100
Message-ID: <[email protected]> (raw)

Hi all,



I have long commits on a production database. To know why this happens I
organized a snapshot system on table pg_stat_activity.

When I check the result I have this row in it:



postgres=# select * from public.fdj_ms_slow_stmts where pid = 2285947 \gx

-[ RECORD 1
]----+----------------------------------------------------------------------
-------------------------------------------------

datname          | some_db

pid              | 2285947

leader_pid       |

usename          | some_user

application_name | PostgreSQL JDBC Driver

backend_start    | 2025-01-21 04:25:17.254477+01

xact_start       | 2025-01-21 05:55:19.426945+01

query_start      | 2025-01-21 05:55:19.428651+01

stmt_duration    | 00:00:02.140691

tx_idle_duration | 00:00:00

ts_now           | 2025-01-21 05:55:21.569342+01

state            | active

wait_event_type  | Lock

wait_event       | advisory

query_id         |

query            | COMMIT

.



Is this possible ?

I am really surprised !



Michel SALAIS



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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Commit with wait event on advisory lock!
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox