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 1fEae8-0006G3-4d for pgsql-general@arkaria.postgresql.org; Fri, 04 May 2018 13:21:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fEae6-0000dx-TC for pgsql-general@arkaria.postgresql.org; Fri, 04 May 2018 13:21:10 +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 1fEae5-0000db-MO for pgsql-general@lists.postgresql.org; Fri, 04 May 2018 13:21:10 +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 1fEady-0000rs-Hv for pgsql-general@postgresql.org; Fri, 04 May 2018 13:21:08 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CAEE921B21; Fri, 4 May 2018 09:21:01 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 04 May 2018 09:21:01 -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=fm2; bh=kPEpLFB6YDArCNfIe8WFUBUeOYrn1 AlfkP+TBHn+d1A=; b=OABr6wwNlcZwjBzD8VXFRBGXZWm3a5QtfPbTk/p7CQ2Ng TDcHDjGhEj5vrO89kvH8vhokv2VZamePCMMfG0PZjlAXZV0a3z3w+vuVi3eOBbV0 QTpkgqETaTapg7iCWo1F4WLd1tEaVukulWmTIhw/RoUh2v4fHOQh9+HrEmlRk9vV h/n+PS2acmn++XyIWD9e87XFGZ8HI0qVrn+WyaIEJDzLo1vUCw8K1/iraTsV8dCu BVOAXzUKEGrJ9cy6Tj6N9tNbRMsKDGOwdm6O0k9AWH5aNU/DDXgXVm7wEl+MlYmP 0eHsvtyTwVi/3/6IbVtBT3aPQV+2wECnisR8JbtPA== 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=kPEpLF B6YDArCNfIe8WFUBUeOYrn1AlfkP+TBHn+d1A=; b=CEwV/1B4i4W5UgsZGmz1Rv wwYmOtZOan/BqbRW7anAXu20Q+zHvZQwBLklLgsaTIJl6HSQhERV8C1xEsiqnCGw BeXSPCd6Ti3ANkvGxoNEqr8gF7mVfz8UZuuHA3tjjEbdlKr9Gh7CZT/lnez35s14 LrMB5WcH2UdgM5LDKWOw4oBCF2l0T7SEZGU6BpyZlTzsXFJDtlSgUohReiU3UmOQ qUU59Dw1tChfytzoesZkOePdLskTr63ekOD+hK93dqtovQxUc/BSo4+mly+Wwkc4 e5M5nH9zZ4IzFvGWGAI5/K1lvG/SQ4V7oQUOx30gP+pLQnXbkFE1ZOIddO7A8bGA == X-ME-Sender: Received: from [192.168.1.2] (unknown [71.212.135.74]) by mail.messagingengine.com (Postfix) with ESMTPA id D673F10256; Fri, 4 May 2018 09:21:00 -0400 (EDT) Subject: Re: How to find the hits on the databases and tables in Postgres To: nikhil raj , pgsql-general@postgresql.org, pgsql-admin@postgresql.com, k.knizhnik@postgrespro.ru References: From: Adrian Klaver Message-ID: Date: Fri, 4 May 2018 06:21:00 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; 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 05/04/2018 04:44 AM, nikhil raj wrote: > Hi, > Any one can please help me out > > How to monitor the Hits on database and how many hits on each user > tablesĀ  Through query. > Is there any other tools for that so it can full fill my requirement for > it . https://www.postgresql.org/docs/10/static/monitoring-stats.html https://www.postgresql.org/docs/10/static/monitoring-stats.html#PG-STAT-DATABASE-VIEW https://www.postgresql.org/docs/10/static/monitoring-stats.html#PG-STAT-DATABASE-VIEW pg_stat_user_tables Same as pg_stat_all_tables, except that only user tables are shown. > > Thanks, > > -- Adrian Klaver adrian.klaver@aklaver.com