Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tERnO-007N66-33 for pgsql-general@arkaria.postgresql.org; Fri, 22 Nov 2024 11:25:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tERnL-007lwf-QU for pgsql-general@arkaria.postgresql.org; Fri, 22 Nov 2024 11:25:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tERnL-007lwX-Db for pgsql-general@lists.postgresql.org; Fri, 22 Nov 2024 11:25:51 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tERnI-003Cvd-CF for pgsql-general@lists.postgresql.org; Fri, 22 Nov 2024 11:25:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; 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; bh=g6BF/L1RA/mgUb0Z5AST0qr0PIiiwK8x/ONt3crplfY=; b=mBNfrZANpdlXYAbDmySZt6WCMg EzDaCWL9qGVS020vZSSeJa2l/My2s9WRM38KKzH08dDio0ntORIC9+3FutEbHjCNQ7oYGqEf4l73P aCRTb310hA9dThEx0GtFBrpSTXQM1HO3kG0Dre4+fxiEvqumidsBYR4HuKsR2/J8XtDw=; Received: from depesz by depesz.com with local (Exim 4.96) (envelope-from ) id 1tERnE-000xFZ-2u; Fri, 22 Nov 2024 12:25:45 +0100 Date: Fri, 22 Nov 2024 12:25:44 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Jethish Jethish Cc: "David G. Johnston" , pgsql-general@lists.postgresql.org Subject: Re: PostgreSQL Log Info Message-ID: Reply-To: depesz@depesz.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Nov 22, 2024 at 01:02:27PM +0530, Jethish Jethish wrote: > Hi David, > > If an select query is fired I need the query returned values needs to be > logged in my PostgreSQL log file. > > > For example if a select query returns 5 rows I need the same in the log > file Please note that you wrote what you want to do. And David asked about use case. Which is different. Basically the question can be summed into: *why* you think you want that. I don't think anything even remotely similar to this exists. You could, of course, add it to Pg by changing sources (it is open source after all), but given that such feature would be downright dangerous for huge majority of situations, I don't expect it to become reality in mainline Pg. Best regards, depesz