回复: 回复: [PATCH] BUG FIX: Core dump could happen when VACUUM FULL in standalone mode

2020-11-30 Thread Yulin PEI
I think you are right after reading code in compute_parallel_vacuum_workers() :) 发件人: Tom Lane 发送时间: 2020年12月1日 2:54 收件人: Yulin PEI 抄送: Masahiko Sawada ; pgsql-hackers@lists.postgresql.org 主题: Re: 回复: [PATCH] BUG FIX: Core dump could happen when VACUUM FULL in

Re: 回复: [PATCH] BUG FIX: Core dump could happen when VACUUM FULL in standalone mode

2020-11-30 Thread Masahiko Sawada
On Tue, Dec 1, 2020 at 3:54 AM Tom Lane wrote: > > Yulin PEI writes: > > Yes, I agree because (IsNormalProcessingMode() ) means that current process > > is not in bootstrap mode and postmaster process will not build index. > > So my new modified patch is attached. > > This is a good catch, but t

Re: 回复: [PATCH] BUG FIX: Core dump could happen when VACUUM FULL in standalone mode

2020-11-30 Thread Tom Lane
Yulin PEI writes: > Yes, I agree because (IsNormalProcessingMode() ) means that current process > is not in bootstrap mode and postmaster process will not build index. > So my new modified patch is attached. This is a good catch, but the proposed fix still seems pretty random and unlike how it's

回复: [PATCH] BUG FIX: Core dump could happen when VACUUM FULL in standalone mode

2020-11-30 Thread Yulin PEI
-hackers@lists.postgresql.org 主题: Re: [PATCH] BUG FIX: Core dump could happen when VACUUM FULL in standalone mode On Mon, Nov 30, 2020 at 5:45 PM Yulin PEI mailto:ype...@connect.ust.hk>> wrote: Hi hackers, I found that when running command vaccum full in stand-alone mode there will be a cor

Re: [PATCH] BUG FIX: Core dump could happen when VACUUM FULL in standalone mode

2020-11-30 Thread Masahiko Sawada
On Mon, Nov 30, 2020 at 5:45 PM Yulin PEI wrote: > Hi hackers, > > I found that when running command vaccum full in stand-alone mode there > will be a core dump. > The core stack looks like this: > > backend> vacuum full > TRAP: FailedAssertion("IsUnderPostmas

[PATCH] BUG FIX: Core dump could happen when VACUUM FULL in standalone mode

2020-11-30 Thread Yulin PEI
Hi hackers, I found that when running command vaccum full in stand-alone mode there will be a core dump. The core stack looks like this: backend> vacuum full TRAP: FailedAssertion("IsUnderPostmaster", File: "dsm.c", Line: 439) ./postgres(ExceptionalCondition+0