pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedLink WAL record to session
4+ messages / 3 participants
[nested] [flat]
* Link WAL record to session
@ 2023-01-24 18:35 Sergey Burladyan <eshkinkot@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Sergey Burladyan @ 2023-01-24 18:35 UTC (permalink / raw)
To: pgsql-general
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Link WAL record to session
@ 2023-01-24 19:30 kaido vaikla <kaido.vaikla@gmail.com>
parent: Sergey Burladyan <eshkinkot@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: kaido vaikla @ 2023-01-24 19:30 UTC (permalink / raw)
To: Sergey Burladyan <eshkinkot@gmail.com>; +Cc: pgsql-general
Hi
Take a look at parameter
log_line_prefix
br
Kaido
On Tue, 24 Jan 2023, 20:36 Sergey Burladyan, <eshkinkot@gmail.com> wrote:
>
> 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
>
>
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Link WAL record to session
@ 2023-01-24 19:36 David G. Johnston <david.g.johnston@gmail.com>
parent: kaido vaikla <kaido.vaikla@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: David G. Johnston @ 2023-01-24 19:36 UTC (permalink / raw)
To: kaido vaikla <kaido.vaikla@gmail.com>; +Cc: Sergey Burladyan <eshkinkot@gmail.com>; pgsql-general
On Tue, Jan 24, 2023 at 12:30 PM kaido vaikla <kaido.vaikla@gmail.com>
wrote:
> Hi
> Take a look at parameter
> log_line_prefix
>
>>
>>
Really? Care to explain in more detail. I wouldn't expect that setting to
have anything to do with WAL.
David J.
^ permalink raw reply [nested|flat] 4+ messages in thread
* re: Link WAL record to session
@ 2023-01-24 20:29 kaido vaikla <kaido.vaikla@gmail.com>
parent: David G. Johnston <david.g.johnston@gmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: kaido vaikla @ 2023-01-24 20:29 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: Sergey Burladyan <eshkinkot@gmail.com>; pgsql-general
xid in wal should be transaction id. It is one option (with pid) for log
line prefix
br
Kaido
On Tue, 24 Jan 2023, 21:37 David G. Johnston, <david.g.johnston@gmail.com>
wrote:
> On Tue, Jan 24, 2023 at 12:30 PM kaido vaikla <kaido.vaikla@gmail.com>
> wrote:
>
>> Hi
>> Take a look at parameter
>> log_line_prefix
>>
>>>
>>>
> Really? Care to explain in more detail. I wouldn't expect that setting
> to have anything to do with WAL.
>
> David J.
>
>
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2023-01-24 20:29 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-01-24 18:35 Link WAL record to session Sergey Burladyan <eshkinkot@gmail.com>
2023-01-24 19:30 ` kaido vaikla <kaido.vaikla@gmail.com>
2023-01-24 19:36 ` David G. Johnston <david.g.johnston@gmail.com>
2023-01-24 20:29 ` kaido vaikla <kaido.vaikla@gmail.com>
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