pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sergey Burladyan <eshkinkot@gmail.com>
To: pgsql-general@postgresql.org
Subject: Link WAL record to session
Date: Tue, 24 Jan 2023 21:35:55 +0300
Message-ID: <87ilgv7pbo.fsf@gmail.com> (raw)


Hi, All!

Is it possible to associate a WAL record with it session/process id?

For example, if I have this record in WAL:
rmgr: Standby     len (rec/tot):     42/    42, tx: 1142213518, lsn: 36174/FDC19050, prev 36174/FDC19020, desc: LOCK xid 1142213518 db 13091 rel 733108033

Can I find session that writes it?

-- 
Sergey Burladyan





view thread (4+ messages)  latest in thread

Message-ID: <87ilgv7pbo.fsf@gmail.com>
Permalink:  ../87ilgv7pbo.fsf@gmail.com/
Also on:    postgresql.org/message-id/87ilgv7pbo.fsf@gmail.com

 · 

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: eshkinkot@gmail.com
  Subject: Re: Link WAL record to session
  In-Reply-To: <87ilgv7pbo.fsf@gmail.com>
  References: <87ilgv7pbo.fsf@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