Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQO7p-0005o2-00 for pgsql-hackers@arkaria.postgresql.org; Tue, 14 May 2019 03:29:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hQO7m-0007Zf-2i for pgsql-hackers@arkaria.postgresql.org; Tue, 14 May 2019 03:29:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQO7l-0007Wl-Qu for pgsql-hackers@lists.postgresql.org; Tue, 14 May 2019 03:29:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQO7i-0006Np-I2 for pgsql-hackers@lists.postgresql.org; Tue, 14 May 2019 03:29:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x4E3SpwR013094; Mon, 13 May 2019 23:28:51 -0400 From: Tom Lane To: Thunder cc: "Michael Paquier" , "Kuntal Ghosh" , "PostgreSQL Hackers" Subject: Re: PANIC :Call AbortTransaction when transaction id is no normal In-reply-to: <4d8688e8.2ed3.16ab444bc37.Coremail.thunder1@126.com> References: <3850b11a.5121.16aaf827e4a.Coremail.thunder1@126.com> <20190513081018.GC2273@paquier.xyz> <15939.1557754652@sss.pgh.pa.us> <20190513235336.GE2273@paquier.xyz> <4d8688e8.2ed3.16ab444bc37.Coremail.thunder1@126.com> Comments: In-reply-to Thunder message dated "Tue, 14 May 2019 10:56:04 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13092.1557804531.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 13 May 2019 23:28:51 -0400 Message-ID: <13093.1557804531@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk [ please don't top-post on the PG lists ] Thunder writes: > At 2019-05-14 07:53:36, "Michael Paquier" wrote: >> On Mon, May 13, 2019 at 09:37:32AM -0400, Tom Lane wrote: >>> But ... that code's been like that for decades and nobody's complained >>> before. Why are we worried about bootstrap's response to signals at a= ll? > On our server when process crash and core dump file generated we will re= ceive complaining phone call. > That's why i try to fix it. OK, that's fair. The SIG_DFL change I suggested will fix that problem for SIGINT etc (except SIGQUIT, for which you should be *expecting* a core file). I agree with Michael that we do not wish to change what happens for an internal error; but external signals do not represent a bug in PG, so forcing a PANIC for those seems unwarranted. regards, tom lane