Deduplicate min restart_lsn calculation code - Mailing list pgsql-hackers

From Bharath Rupireddy
Subject Deduplicate min restart_lsn calculation code
Date
Msg-id CALj2ACVXESfjbsVt83SrpmGcqFYC_tdrFgTvnBV=nkW4S0tpBA@mail.gmail.com
Whole thread Raw
Responses Re: Deduplicate min restart_lsn calculation code
List pgsql-hackers
Hi,

It seems like the two functions ReplicationSlotsComputeRequiredLSN and
ReplicationSlotsComputeLogicalRestartLSN more or less does the same
thing which makes me optimize (saving 40 LOC) it as attached. I'm
pretty much okay if it gets rejected on the grounds that it creates a
lot of diff with the older versions and the new API may not look
nicer, still I want to give it a try.

Thoughts?

Regards,
Bharath Rupireddy.

Attachment

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: SQL/JSON: functions
Next
From: "Joel Jacobson"
Date:
Subject: Re: pl/pgsql feature request: shorthand for argument and local variable references