Re: use `proc->pgxactoff` as the value of `index` in `ProcArrayRemove()`

From: 盏一 <w(at)hidva(dot)com>
To: andres freund <andres(at)anarazel(dot)de>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: use `proc->pgxactoff` as the value of `index` in `ProcArrayRemove()`
Date: 2021-06-12 04:52:13
Message-ID: tencent_266A74223032496338317CC7@qq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ok! Thanks
----------

--------------原始邮件--------------
发件人:"Andres Freund "<andres(at)anarazel(dot)de&gt;;
发送时间:2021年6月12日(星期六) 中午12:43
收件人:"盏一" <w(at)hidva(dot)com&gt;;
抄送:"pgsql-hackers "<pgsql-hackers(at)postgresql(dot)org&gt;;
主题:Re: use `proc-&gt;pgxactoff` as the value of `index` in `ProcArrayRemove()`
-----------------------------------

Hi,

On 2021-05-07 04:36:25 +0800, 盏一 wrote:
&gt; &amp;gt;&amp;nbsp;Sounds like a plan! Do you want to write a patch?
&gt; Add the patch.

Thanks for the patch. I finally pushed an edited version of it. There
were other loops over -&gt;pgprocnos, so I put assertions in those - that
gains us a a good bit more checking than we had before...

I also couldn't resist to do some small formatting cleanups - I found
the memmove calls just too hard to read.

I took the authorship information as you had it in the diff you attached
- I hope that's OK?

Greetings,

Andres Freund

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Pryzby 2021-06-12 05:12:12 Re: A new function to wait for the backend exit after termination
Previous Message Andres Freund 2021-06-12 04:42:55 Re: use `proc->pgxactoff` as the value of `index` in `ProcArrayRemove()`