Re: BUG #16931: source code problem about commit_ts
Fujii Masao <masao.fujii@oss.nttdata.com>
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: Andy Fan <zhihuifan1213@163.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>, zoulx1982@163.com,
pgsql-bugs@lists.postgresql.org
Date: 2025-07-02T08:44:30Z
Lists: pgsql-bugs
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Remove leftover dead code from commit_ts.h.
- c84698ceaea8 19 (unreleased) landed
-
Remove COMMIT_TS_SETTS record.
- 08aa89b32626 14.0 landed
-
Fix bug in WAL replay of COMMIT_TS_SETTS record.
- c29bab799c82 9.6.22 landed
- d544671f1572 10.17 landed
- 09cb8512ff11 11.12 landed
- 73cce168ffcb 12.7 landed
- 092c077c1321 13.3 landed
- 438fc4a39c39 14.0 landed
On 2025/07/02 10:42, Andy Fan wrote: > Fujii Masao <masao.fujii@oss.nttdata.com> writes: > > Hi, > >> On 2021/04/10 7:42, Alvaro Herrera wrote: >>> On 2021-Mar-24, Fujii Masao wrote: >>> >>>> diff --git a/src/backend/access/rmgrdesc/committsdesc.c b/src/backend/access/rmgrdesc/committsdesc.c >>>> index 7ebd3d35ef..26bad44b96 100644 >>>> --- a/src/backend/access/rmgrdesc/committsdesc.c >>>> +++ b/src/backend/access/rmgrdesc/committsdesc.c >>>> @@ -38,31 +38,6 @@ commit_ts_desc(StringInfo buf, XLogReaderState *record) >>>> appendStringInfo(buf, "pageno %d, oldestXid %u", >>>> trunc->pageno, trunc->oldestXid); >>>> } >>>> - else if (info == COMMIT_TS_SETTS) >>> You have not pushed this one, right? I think we should do it now. >> >> Thanks for the ping! Pushed! > > Did this commit(08aa89b326261b669648df97d4f2a6edba22d26a) forget to > remove struct xl_commit_ts_set? You're right. I seem to have overlooked that. > After it, there is no reference to > xl_commit_ts_set. So Is it better clean them as well? Agreed, the patch looks good to me. Unless there are objections, I'll go ahead and commit it. While this could be considered an oversight in the original commit, it's not a bug fix, so I plan to apply it only to the master branch. Regards, -- Fujii Masao NTT DATA Japan Corporation