Xuneng Zhou <xunengzhou@gmail.com> writes:
> V9 replaces the original partitioned xid-wait htab with a single,
> unified one, reflecting the modest entry count and rare contention for
> waiting. To prevent possible races when multiple backends wait on the
> same XID for the first time in XidWaitOnStandby, a dedicated lock has
> been added to protect the hash table.
This seems like adding quite a lot of extremely subtle code in
order to solve a very small problem. I thought the v1 patch
was about the right amount of complexity.
regards, tom lane