Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fPpRy-0001To-3g for pgsql-general@arkaria.postgresql.org; Mon, 04 Jun 2018 13:23:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fPpRw-00042M-Qe for pgsql-general@arkaria.postgresql.org; Mon, 04 Jun 2018 13:23:04 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fPpRu-00042A-8u for pgsql-general@lists.postgresql.org; Mon, 04 Jun 2018 13:23:04 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fPpRq-00071p-Ou for pgsql-general@postgresql.org; Mon, 04 Jun 2018 13:23:00 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 7FB8221BD0; Mon, 4 Jun 2018 09:22:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 04 Jun 2018 09:22:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=3Fv4Oxwa0LK3TcvK0I+E6AmwI8t9z kTtqgk+caDMn+o=; b=GOkIEMqmaCGzrF6cv/AHgwLjef8/1DQnRsGfLZUoOJY/X STCkxR7SmidG31N9u50fBi90XQTX/aLp5l7jjLQ73aBYLl9P4/NatQWFDG2q8ui6 5XJphKQ/bNVw6VCMKVyOO8JvfYhEh85M7Z+Qgqd0nBe/r0uQw2cqdQC2HIvzmDot aPphUlCqFrSA3aJwqukcVZZga1OBIRZUcjFoWvf5vTMm1dA7e4cXa4odbXhmGati cwspCNPh7GyO4icRBVWdl8DQk2KvXx9q7ruPwfNulQ8LNQfnbGOAwd1+vEEVxNWL 93ptY11wR85XiZZBGCBFzmB0tGs9qyeRCrFOspoEg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=3Fv4Ox wa0LK3TcvK0I+E6AmwI8t9zkTtqgk+caDMn+o=; b=BosPmeywuc8RQ5SrNYGY/9 RTRQAkdQcO6aygIJAG+t/XnlyO2VskkkIR3S9Yv23e6UzJWWwJVKFgBEW2Ccf8PY Wg5l8cafQeslia1OnBKLmzJXWBv01GuvomOoSHfUiSKNb8UmFhKzPfXhykA5xmfG tWZ7/ckMbx5/vrqgZtNfYRPj7+icQUG32wqk+5FHXEkAGePcsqFTPpwaMWqfvbfr wOpjqMj+3lcKDVBfRe1DMWurWjit4eSZJRhkM9qQ7To8EklvqLps+e5hBMNSB3Ig uFT9dgyAyedGu1jwNLt+iS7pjVwQn4X9OH6hMHWBps2wNlBDATexhzvzlFWN30SQ == X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.159.209]) by mail.messagingengine.com (Postfix) with ESMTPA id B78E4E4910; Mon, 4 Jun 2018 09:22:55 -0400 (EDT) Subject: Re: How to get postmaster shut down time in postgres? To: pavan95 , pgsql-general@postgresql.org References: <1528118250600-0.post@n3.nabble.com> From: Adrian Klaver Message-ID: <4462191d-e3ee-bec1-3b69-e0f3c13f9c04@aklaver.com> Date: Mon, 4 Jun 2018 06:22:54 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1528118250600-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 06/04/2018 06:17 AM, pavan95 wrote: > Hi all, > > Is there any way to get postmaster(postgres database) shutdown time? Please > help!! Assuming you have the Postgres logging turned on it will be in the log: The log when the server was shutdown: 2018-06-03 21:11:41.739 PDT-0LOG: database system is shut down The log when it was next started up: 2018-06-04 05:46:33.118 PDT-0LOG: database system was shut down at 2018-06-03 21:11:41 PDT > > Thanks in Advance. > > > Regards, > Pavan > > > > -- > Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html > > -- Adrian Klaver adrian.klaver@aklaver.com