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 1kPjI8-0003CV-Ez for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Oct 2020 09:29:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPjI7-0006gy-Bm for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Oct 2020 09:29: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 1kPjI7-0006go-5P for pgsql-hackers@lists.postgresql.org; Tue, 06 Oct 2020 09:29:51 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPjI4-0005JJ-Oq for pgsql-hackers@lists.postgresql.org; Tue, 06 Oct 2020 09:29:50 +0000 Received: from oss.nttdata.com (localhost [127.0.0.1]) by oss.nttdata.com (Postfix) with ESMTP id C0DA9623E9; Tue, 6 Oct 2020 18:29:45 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 at oss.nttdata.com MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 06 Oct 2020 18:29:45 +0900 From: Masahiro Ikeda To: Laurenz Albe Cc: Ahsan Hadi , PostgreSQL Hackers Subject: Re: Add session statistics to pg_stat_database In-Reply-To: <70a90a9b4a7e1df47ede3b01774608246bd929ee.camel@cybertec.at> References: <68050bc3d927050061d0b106905d69b3bb39fed2.camel@cybertec.at> <70a90a9b4a7e1df47ede3b01774608246bd929ee.camel@cybertec.at> Message-ID: <18a997048d0ed961f9b43968547f740b@oss.nttdata.com> X-Sender: ikedamsh@oss.nttdata.com User-Agent: Roundcube Webmail/1.1.9 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-09-05 00:50, Laurenz Albe wrote: > I have changed the code so that connections are counted immediately. > Attached is a new version. Thanks for making a patch. I'm interested in this feature. I think to add the number of login failures is good for security. Although we can see the event from log files, it's useful to know the overview if the database may be attached or not. By the way, could you rebase the patch since the latest patches failed to be applied to the master branch? Regards, -- Masahiro Ikeda NTT DATA CORPORATION