Re: Add last commit LSN to pg_last_committed_xact()

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Add last commit LSN to pg_last_committed_xact()
Дата
Msg-id 202201181852.paa7sw4hzkuc@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Add last commit LSN to pg_last_committed_xact()  (James Coleman <jtc331@gmail.com>)
Ответы Re: Add last commit LSN to pg_last_committed_xact()  (James Coleman <jtc331@gmail.com>)
Список pgsql-hackers
On 2022-Jan-18, James Coleman wrote:

> Reading the code it seems the only usage (besides
> the boolean activation status also stored there) is in
> TransactionIdGetCommitTsData, and the only consumers of that in core
> appear to be the SQL callable functions to get the latest commit info.
> It is in commit_ts.h though, so I'm guessing someone is using this
> externally (and maybe that's why the feature has the shape it does).

Logical replication is the intended consumer of that info, for the
purposes of conflict handling.  I suppose pglogical uses it, but I don't
know that code myself.

[ ... greps ... ]

Yeah, that function is called from pglogical.

-- 
Álvaro Herrera              Valdivia, Chile  —  https://www.EnterpriseDB.com/



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

Предыдущее
От: Andrey Borodin
Дата:
Сообщение: Re: [PATCH] reduce page overlap of GiST indexes built using sorted method
Следующее
От: Robert Haas
Дата:
Сообщение: Re: refactoring basebackup.c