Re: FullTransactionIdAdvance question

2024-09-22 Thread Andy Fan
Hi Andres: > On 2024-09-20 17:38:40 +0800, Andy Fan wrote: >> static inline void >> FullTransactionIdAdvance(FullTransactionId *dest) >> { .. >> } >> >> I understand this functiona as: 'dest->value++' increases the epoch when >> necessary and we don't want use the TransactionId which is smaller

Re: FullTransactionIdAdvance question

2024-09-20 Thread Andres Freund
Hi, On 2024-09-20 17:38:40 +0800, Andy Fan wrote: > static inline void > FullTransactionIdAdvance(FullTransactionId *dest) > { > dest->value++; > > /* see FullTransactionIdAdvance() */ > if (FullTransactionIdPrecedes(*dest, FirstNormalFullTransactionId)) > return;