Re: Way to access LSN (for each transaction) by directly talking to postgres?

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: Joshua Bay <joshuabay93(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Fabrízio Mello <fabriziomello(at)gmail(dot)com>
Subject: Re: Way to access LSN (for each transaction) by directly talking to postgres?
Date: 2016-08-03 13:47:39
Message-ID: CAMsr+YHCRG84h8Xr=D-C+MF5N8-DC-aXqpVVcroSfP4Pmy8+Kg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 3 August 2016 at 11:37, Joshua Bay <joshuabay93(at)gmail(dot)com> wrote:

> Hi,
>
> Could you please let me know if there is a way to get LSN of each
> transaction by directly communicating with Postgres server and NOT by
> accessing logs.
>

To what end? What problem are you trying to solve?

What LSN, exactly? The LSN of the first write and xid allocation? The LSN
of the commit record? What if it's a complex commit like with prepared
xacts?

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2016-08-03 13:55:50 Re: Detecting skipped data from logical slots (data silently skipped)
Previous Message Craig Ringer 2016-08-03 13:43:12 Re: Why we lost Uber as a user