Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZynd-0007R4-BK for pgsql-general@arkaria.postgresql.org; Fri, 23 Apr 2021 16:37:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lZynT-0005QF-Rx for pgsql-general@arkaria.postgresql.org; Fri, 23 Apr 2021 16:36:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZynT-0005Q6-KZ for pgsql-general@lists.postgresql.org; Fri, 23 Apr 2021 16:36:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZynN-0000QM-AQ for pgsql-general@lists.postgresql.org; Fri, 23 Apr 2021 16:36:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 13NGaflt1385518; Fri, 23 Apr 2021 12:36:42 -0400 From: Tom Lane To: Eric Hill cc: "pgsql-general@lists.postgresql.org" Subject: Re: server process exited with code 1 In-reply-to: References: Comments: In-reply-to Eric Hill message dated "Fri, 23 Apr 2021 15:58:32 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1385516.1619195801.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 23 Apr 2021 12:36:41 -0400 Message-ID: <1385517.1619195801@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Eric Hill writes: > 2021-04-23 03:20:57 EDT [5324]: LOG: connection received: host=3D10.120= .80.162 port=3D54017 > 2021-04-23 03:20:57 EDT [5324]: LOG: connection authorized: user=3Ddba_= webjmp database=3Dwebjmp > 2021-04-23 03:21:00 EDT [15776]: LOG: server process (PID 14820) exited= with exit code 1 > 2021-04-23 03:21:00 EDT [15776]: DETAIL: Failed process was running: SE= T client_min_messages TO warning;SET TIME ZONE INTERVAL '+00:00' HOUR TO M= INUTE; > 2021-04-23 03:21:00 EDT [15776]: LOG: terminating any other active serv= er processes Hm. That's fairly odd. Exit code 1 ordinarily means that the backend hit a "FATAL" error, which is one that causes process termination but *not* a database-wide restart. The fact that the postmaster is treating it that way anyway implies that the backend failed to disarm the "dead man switch" mechanism that exists to check that backends cleaned up their shared-memory state before exiting. Another thing that doesn't square with this being an ordinary FATAL exit is that there's no message visible in the log. (I wonder what this looks like from the client's end --- is it getting any sort of termination message, or just a lost network connection?) The implication is that something in the backend did _exit(1) to force process termination without any of the normal atexit cleanup. There is not, or at least isn't supposed to be, anything in Postgres proper that does that. So I'm wondering if you have any nonstandard code in there, such as unusual extensions. A badly-written event trigger could perhaps do it too. This being Windows, a certain amount of suspicion has to be directed towards bogus antivirus code, too. regards, tom lane