Re: Commit Timestamp and LSN Inversion issue - Mailing list pgsql-hackers

From Jan Wieck
Subject Re: Commit Timestamp and LSN Inversion issue
Date
Msg-id 00f7cfb2-e3a6-4bd7-b19c-fd75d3838049@wi3ck.info
Whole thread Raw
In response to Re: Commit Timestamp and LSN Inversion issue  (Amit Kapila <amit.kapila16@gmail.com>)
Responses Re: Commit Timestamp and LSN Inversion issue
List pgsql-hackers
On 11/11/24 23:21, Amit Kapila wrote:
> As the inversion issue can mainly hamper logical replication-based
> solutions we can do any of this additional work under spinlock only
> when the current record is a commit record (which the currently
> proposed patch is already doing) and "wal_level = logical" and also
> can have another option at the subscription level to enable this new
> code path. I am not sure what is best but just sharing the ideas here.

It can indeed be reduced to one extra *unlikely* if test only for commit 
records and only when WAL level is "logical". Without those two being 
true there would be zero impact on ReserveXLogInsertLocation().

It is not possible to do something on the subscription level because it 
affects global behavior of all backends.


Best Regards, Jan



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Parametrization minimum password lenght
Next
From: Andres Freund
Date:
Subject: Re: Commit Timestamp and LSN Inversion issue