Re: PANIC :Call AbortTransaction when transaction id is no normal
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Thunder <thunder1@126.com>, Kuntal Ghosh <kuntalghosh.2007@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2019-05-14T03:37:39Z
Lists: pgsql-hackers
On Mon, May 13, 2019 at 11:28:51PM -0400, Tom Lane wrote: > 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. No objections from here to change the signal handlers. Still, I would like to understand why the bootstrap process has been signaled to begin with, particularly for an initdb, which is not really something that should happen on a server where an instance runs. If you have a too aggressive monitoring job, you may want to revisit that as well, because it is able to complain just with an initdb. -- Michael
Commits
-
In bootstrap mode, use default signal handling for SIGINT etc.
- fb489e4b3195 12.0 landed