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 1jUQWQ-0005Am-7C for pgsql-sql@arkaria.postgresql.org; Fri, 01 May 2020 07:55:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jUQWO-0000Mu-Rb for pgsql-sql@arkaria.postgresql.org; Fri, 01 May 2020 07:55:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUQWO-0000LN-LM for pgsql-sql@lists.postgresql.org; Fri, 01 May 2020 07:55:44 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jUQWK-0001NA-PS for pgsql-sql@postgresql.org; Fri, 01 May 2020 07:55:43 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id BED741D04D0BF for ; Fri, 1 May 2020 00:55:38 -0700 (MST) Date: Fri, 1 May 2020 00:55:38 -0700 (MST) From: legrand legrand To: pgsql-sql@postgresql.org Message-ID: <1588319738779-0.post@n3.nabble.com> In-Reply-To: References: Subject: Re: Table/log file name which store the queries which got executed in last 1 month MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk If thoses users are connected with distinct accounts from application into the database, maybe that pg_stat_statements may help see https://www.postgresql.org/docs/current/pgstatstatements.html Regards PAscal -- Sent from: https://www.postgresql-archive.org/PostgreSQL-sql-f2142323.html