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 1fPq27-0004CK-S3 for pgsql-general@arkaria.postgresql.org; Mon, 04 Jun 2018 14:00:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fPq26-0007zI-IG for pgsql-general@arkaria.postgresql.org; Mon, 04 Jun 2018 14:00:26 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1fPq26-0007z9-8k for pgsql-general@lists.postgresql.org; Mon, 04 Jun 2018 14:00:26 +0000 Received: from mail-ot0-x243.google.com ([2607:f8b0:4003:c0f::243]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fPq1y-0007cv-Hw for pgsql-general@lists.postgresql.org; Mon, 04 Jun 2018 14:00:25 +0000 Received: by mail-ot0-x243.google.com with SMTP id t1-v6so37748861oth.8 for ; Mon, 04 Jun 2018 07:00:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=LGXRifUgnwDoWBDLjZQchIAo+pIvm4LIfd56WeRdlLg=; b=RmXaJ5h0BtMrpZNwotctTpoYcDUC8JGm7qqak0gwRHGQ2K0c1IgOTlcVnZmjLDl29Q v/b9u+AoDgbo5Ry4ZcRoU9G4gs9O/5Cq37Zdk3ZPRf8CFvJ4yBH+0oN44uQkMeMtZ3sj JZXd0FfTjIIkoyf4qwVfiqs0wH/j7cak3lnMFljCJFeuL3/dH0br7+7jM6zLYxrjuh7H owuAe4kyygl6DL7h9gbc/RG8gvYrbpUNwlxe9XvJpPCtkinOLKPCfqTMT1F7AGfwAbnR gQR4ACbAKTo8MXmQrsydQGNHWWpnhYWej0lMwC8QmZv4TyV4NmD2p9UuPXjOQb5FytiS r7DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=LGXRifUgnwDoWBDLjZQchIAo+pIvm4LIfd56WeRdlLg=; b=sLpvt6/m5idaBnCMDOe0U4fsaSNBpCFjoh53UUwrestpW5UfDbLai+7/hP+dZoRz+Z 8Sb2m8lFHA9NZQr1zhkoMtNl6YBCRr7MuHH141YOhlyDLS95yoJVU0eCbmTHIHlOjwcd fEV9iPy1eS3QQDWh+Vc75d4NoJq/l6zvCQ4ti3y97gYqKanMb+CHWJ6qAFuVX7zxylNW iEAUNFUjGrWIW7Yiv5jPqNuvphtnZVQM7S8SybpZlTH9KHo9N/fZandrgwJWYi1f6j6+ 95vi87ZjxiR/FdKf6GnCWCo7xIW5p67bp6cGNNVwBpYmAucygyhFJw+7/p4MmR+9cJUe ewog== X-Gm-Message-State: APt69E1iYfHkhPtcHwpawd5ss43Pc2ALEOG53bfzdBCxy28SRIllUqlZ /TyvjrKX5jjATzY1seGJpLfDnQ== X-Google-Smtp-Source: ADUXVKJNjzBYMTc/nFK2y7tqb1Qtl5RItKpLbxnbbXFv6bPzJuZ+lOJP3PwzpuTTe9r5Rx/LqJzcKg== X-Received: by 2002:a9d:599f:: with SMTP id u31-v6mr8391921oth.74.1528120816477; Mon, 04 Jun 2018 07:00:16 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id x194-v6sm10770710oix.38.2018.06.04.07.00.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jun 2018 07:00:15 -0700 (PDT) Subject: Re: How to get postmaster shut down time in postgres? To: pgsql-general@lists.postgresql.org References: <1528118250600-0.post@n3.nabble.com> <1528119860207-0.post@n3.nabble.com> From: Ron Message-ID: <9e365331-761a-4210-0803-16ae35aa94ed@gmail.com> Date: Mon, 4 Jun 2018 09:00:14 -0500 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: <1528119860207-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 06/04/2018 08:44 AM, pavan95 wrote: > Hi Adrian/Melvin, > > Thanks for your prompt replies. Yeah, I'm aware of that way. > > But my requirement is to get the server shutdown time whenever that event > occurs and insert into a table dynamically!! Is it possible? You want to trap the shutdown action and write to an audit table just before it happens? -- Angular momentum makes the world go 'round.