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 1hORv6-0007Gd-28 for pgsql-general@arkaria.postgresql.org; Wed, 08 May 2019 19:08:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hORv4-0007KE-M5 for pgsql-general@arkaria.postgresql.org; Wed, 08 May 2019 19:07:58 +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 1hORv3-0007HC-EG for pgsql-general@lists.postgresql.org; Wed, 08 May 2019 19:07:58 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hORv0-0006oO-2I for pgsql-general@lists.postgresql.org; Wed, 08 May 2019 19:07:57 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CD1B524B3D; Wed, 8 May 2019 15:07:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 08 May 2019 15:07:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=i FY1mx9YqrnC8n3MVXC8PWOPVcT0SegNVJ6vzMGONQg=; b=jDIVEbYGpC6JMYWYH O38Mp0sPMWPYq9CXLQ7xOw9HkoS/yHGD9QCMhbSZNsBQxSHLHdvY/AAXPhd1/Zrc hICY7hJb3NDIWXDS0n5mMwXMBKmtk3DErVs9jaAYUiRDgzsioD/yj5FUIvLZlmTz uhGYBf7rNOudB5b5OCd1A0S+HVM5fqxsGwBeQlwPJgXA7cgOPDJSNnn0N7fKszEv /V4FCiohV33UCXVoUTOmTjbJ28sUQ4qx5BjqBMUr4d8wWrpthVx7CW3hr+pgq4jv 7xOfWIBkk01hIZLGu8qwQ+15WvesPiU6XGrNQmmzJij/UuJzwWhN2oeRty21mXhu YmX+w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=iFY1mx9YqrnC8n3MVXC8PWOPVcT0SegNVJ6vzMGON Qg=; b=hu3GPHBEarSgmvQBqmrRlZgh2MMGmGOJav9h/sVip+HkK6itBabG5NaPk WRvqaIGIamtnXB7O/6DSSiCl2hif9u8vpqxPE+w50B0lEY4r0Cc37g7ach8pKanS PRkeTOPyvjaViW+cbj2BB0ZXmwssP/gSQStpRjj9mfjJcHj9nGw5jIOTUFF3GQn6 wK8Vc65UfP3hGI5FLtuRMec/TVFYzusM6jqoi/jNOjf/42UcIgps8rD+TmQirBrr 5YgsfcCJT33xjMoAoiVD8duCbEsYPlmJZy3a6TgKGFLYCQHUvTzEXWG4eySKSAsI +FBkhJQGsfjTZ5vbYlyfTktAR34sw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrkeefgddufeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeehnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeejuddrvdduvddrudehtddrvd dtvdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghk lhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id B2794103CC; Wed, 8 May 2019 15:07:51 -0400 (EDT) Subject: Re: postgresql 9.4 restart To: Julie Nishimura Cc: "pgsql-general@lists.postgresql.org" , pgsql-general References: <87o94ducuk.fsf@gmail.com> From: Adrian Klaver Message-ID: Date: Wed, 8 May 2019 12:07:50 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/8/19 11:00 AM, Julie Nishimura wrote: > Hello, > Our staging 9.4 postgresql has been running couple of weeks with no > problem, but yesterday we saw this error from one of our services that > connects to the staging DBs: > > FATAL: terminating connection due to > administrator command; nested exception is > org.postgresql.util.PSQLException: FATAL: terminating connection due to > administrator command”, Distro and version? Well it originated in Java code if that helps? Anything in the Postgres logs just prior to 'FATAL: terminating connection ...' that might be relevant? Do the system logs showing anything relevant e.g. the OOM killer stopping Postgres? > > Then I could see that postgresql got restarted, based on the output of > "select pg_postmaster_start_time()" > > We are running postgresql on > Linux xxx-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 > x86_64 x86_64 GNU/Linux > > How I can find out what cause the restart? Any ideas are welcome. Thanks! > > -Julie N > > -- Adrian Klaver adrian.klaver@aklaver.com