Why not set builder->next_phase_at=InvalidTransactionId in SnapBuildRestore function?

From: zxwsbg <zxwsbg(at)qq(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Why not set builder->next_phase_at=InvalidTransactionId in SnapBuildRestore function?
Date: 2022-11-24 07:56:01
Message-ID: tencent_7A5062EB667701A5E23A1B2B09828BCE5506@qq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi, guys:

In PG14 or higher version, I notice that&nbsp;SnapBuildRestore don't set&nbsp;builder-&gt;next_phase_at=InvalidTransactionId .

But in SnapBuildSerialize function, the assert check this condition.

Assert(builder-&gt;next_phase_at == InvalidTransactionId);

I'd like to know is this right?

Thanks.

Browse pgsql-general by date

  From Date Subject
Next Message zxwsbg 2022-11-24 08:01:52 Why not set builder->next_phase_at=InvalidTransactionId in SnapBuildRestore function?
Previous Message Nikolas Hanry 2022-11-24 07:36:26 Fwd: Change the auth. postgresql and GIS