Why not set builder->next_phase_at=InvalidTransactionId in SnapBuildRestore function? - Mailing list pgsql-general

From zxwsbg
Subject Why not set builder->next_phase_at=InvalidTransactionId in SnapBuildRestore function?
Date
Msg-id tencent_7A5062EB667701A5E23A1B2B09828BCE5506@qq.com
Whole thread Raw
List pgsql-general
Hi, guys:

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

But in SnapBuildSerialize function, the assert check this condition.

Assert(builder->next_phase_at == InvalidTransactionId);

I'd like to know is this right?

Thanks.

pgsql-general by date:

Previous
From: Nikolas Hanry
Date:
Subject: Fwd: Change the auth. postgresql and GIS
Next
From: "zxwsbg"
Date:
Subject: Why not set builder->next_phase_at=InvalidTransactionId in SnapBuildRestore function?