RE: Improve eviction algorithm in ReorderBuffer - Mailing list pgsql-hackers

From Hayato Kuroda (Fujitsu)
Subject RE: Improve eviction algorithm in ReorderBuffer
Date
Msg-id OS7PR01MB1208188BA629D7B35247E5209F53A2@OS7PR01MB12081.jpnprd01.prod.outlook.com
Whole thread Raw
In response to Re: Improve eviction algorithm in ReorderBuffer  (Masahiko Sawada <sawada.mshk@gmail.com>)
Responses Re: Improve eviction algorithm in ReorderBuffer
List pgsql-hackers
Dear Sawada-san,

> Agreed.
> 
> I think the patch is in good shape. I'll push the patch with the
> suggestion next week, barring any objections.

Thanks for working on this. Agreed it is committable.
Few minor comments:

```
+ * Either txn or change must be non-NULL at least. We update the memory
+ * counter of txn if it's non-NULL, otherwise change->txn.
```

IIUC no one checks the restriction. Should we add Assert() for it, e.g,:
Assert(txn || change)? 

```
+    /* make sure enough space for a new node */
...
+    /* make sure enough space for a new node */
```

Should be started with upper case?

Best Regards,
Hayato Kuroda
FUJITSU LIMITED
https://www.fujitsu.com/ 


pgsql-hackers by date:

Previous
From: Philip Warner
Date:
Subject: Re: Logical replication failure modes
Next
From: Alexander Lakhin
Date:
Subject: Re: To what extent should tests rely on VACUUM ANALYZE?