Deduplicate min restart_lsn calculation code

Поиск
Список
Период
Сортировка
От Bharath Rupireddy
Тема Deduplicate min restart_lsn calculation code
Дата
Msg-id CALj2ACVXESfjbsVt83SrpmGcqFYC_tdrFgTvnBV=nkW4S0tpBA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Deduplicate min restart_lsn calculation code  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список 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.

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: SQL/JSON: functions
Следующее
От: "Joel Jacobson"
Дата:
Сообщение: Re: pl/pgsql feature request: shorthand for argument and local variable references