Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8PBS-0003z2-1V for pgsql-admin@arkaria.postgresql.org; Thu, 02 Jun 2016 09:44:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b8PBR-0002U0-KC for pgsql-admin@arkaria.postgresql.org; Thu, 02 Jun 2016 09:44:57 +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.84_2) (envelope-from ) id 1b8PBR-0002To-7G for pgsql-admin@postgresql.org; Thu, 02 Jun 2016 09:44:57 +0000 Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b8PBN-0007az-8Z for pgsql-admin@postgresql.org; Thu, 02 Jun 2016 09:44:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20140207; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=806O9J8nV7ZnZKLfm5qiROLJETCzOYIMh1G1Vd0Goag=; b=In83dv1PEoH25WNVbjqbIWdQiG lPwjglLSJnjpusp0OEMJZ40ZA+2lzQ2Rkg59B/ZXYSoaH0rY89SHthlhuTtqf3xxjCBptDbKe/Vq7 JR4iyZ10AWa6441TqHDSsKFms; Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by depesz.com with esmtpa (Exim 4.87) (envelope-from ) id 1b8PBJ-00035z-G7; Thu, 02 Jun 2016 11:44:49 +0200 Date: Thu, 2 Jun 2016 11:44:49 +0200 From: hubert depesz lubaczewski To: Dhandapani Shanmugam Cc: Glyn Astill , pgsql-admin@postgresql.org Subject: Re: user logging info Message-ID: <20160602094448.GB8193@depesz.com> Reply-To: depesz@depesz.com References: <2019574206.5819817.1464857224506.JavaMail.yahoo@mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0 (2016-04-01) X-Pg-Spam-Score: -3.4 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On Thu, Jun 02, 2016 at 02:33:34PM +0530, Dhandapani Shanmugam wrote: > I want to see the list of user who logged into XXX database in last 90 > days. How can we do this please You can't really. Unless you will modify postgresql.conf (or any other means of setting config variables), and you'll set log_connections. You might want to read https://www.postgresql.org/docs/current/static/runtime-config-logging.html or https://www.depesz.com/2011/05/06/understanding-postgresql-conf-log/ Best regards, depesz -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin