Re: pgsql: Document XLOG_INCLUDE_XID a little better

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: pgsql: Document XLOG_INCLUDE_XID a little better
Дата
Msg-id CA+Tgmob_sSSt-rowsp1ibgQuatUN38wyjD72GWjv5KXHb6-MCw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Document XLOG_INCLUDE_XID a little better  (Amit Kapila <amit.kapila16@gmail.com>)
Ответы Re: pgsql: Document XLOG_INCLUDE_XID a little better  (Amit Kapila <amit.kapila16@gmail.com>)
Список pgsql-hackers
On Thu, Sep 30, 2021 at 6:08 AM Amit Kapila <amit.kapila16@gmail.com> wrote:
> I think we can do better than using XLOG_INCLUDE_XID flag in the
> record being inserted. We need this flag so that we can mark
> SubTransaction assigned after XLogInsertRecord()  is successful. We
> can instead output a flag (say sub_xact_assigned) from
> XLogRecordAssemble() and pass it to XLogInsertRecord(). Then in
> XLogInsertRecord(), we can mark SubTransactionAssigned once the record
> is inserted (after or before calling
> MarkCurrentTransactionIdLoggedIfAny()).

Isn't there other communication between these routines that just uses
global variables?

-- 
Robert Haas
EDB: http://www.enterprisedb.com



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: prevent immature WAL streaming
Следующее
От: Tom Lane
Дата:
Сообщение: Re: when the startup process doesn't (logging startup delays)