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 1tEW7b-007rQC-0z for pgsql-general@arkaria.postgresql.org; Fri, 22 Nov 2024 16:03:03 +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 1tEW7Z-009smI-Of for pgsql-general@arkaria.postgresql.org; Fri, 22 Nov 2024 16:03:01 +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 1tEW7Y-009skj-3r for pgsql-general@lists.postgresql.org; Fri, 22 Nov 2024 16:03:01 +0000 Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tEW7V-003Evb-9p for pgsql-general@lists.postgresql.org; Fri, 22 Nov 2024 16:02:58 +0000 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfhigh.stl.internal (Postfix) with ESMTP id 0FA6D254019B; Fri, 22 Nov 2024 11:02:56 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Fri, 22 Nov 2024 11:02:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1732291375; x=1732377775; bh=CeGN2KpO009s+lJ7CqsgN1G4tJnQ5lGPJgIV00EHND8=; b= W388dSsPuLoamOzBkxURWLS8Y7fCPBVmq5SAhoMtiYQjaQgCZ6RaQ+Ee0LLhZpkr 8V/OBK5K2jt+LbS1TYosqt2B1JGiZGtQMS1xM/2+0lapTTE+dkGl69ECYJqhzvn7 Hy7yXlZQ/yDaCAwN9MR6vBn4SBIzEd08pLZ8Hf3FG+aTyrq0/zWfDtZbnY0EFt8c hUOhHJsHmJFSjEwIb8Aw3MhsF/i3OveA0n8MEfnFY0E94bqzcBhUvrlIvLVBOi0v wf5suvfETNhaVQpWlVxhR1IfDw7FhG+5ZI1MoOYsKzFT03K8ifLX0NX60av5LrjS mvaZEPLdLsNFzISzgQAZ/w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1732291375; x= 1732377775; bh=CeGN2KpO009s+lJ7CqsgN1G4tJnQ5lGPJgIV00EHND8=; b=l TDcqjBw5VgAsFyy8eNt9aCBUUhz2AeOXcXpbq/nPlpV2dqa1j5mDGP1Sq0qabnwJ TwOfd6Chcb4PJaTBNGrpKkYMtYYjRBcWXNiBKzsqJHr3nmTvKb2BIZcoVJgVouy7 bXCHIvR35RTDKmyfj+WLIkUOg3TFVWE6iYyj5LsgKg7gBUluYto+NA1tggsqqTU2 jJzr9XmVQ10WZbc0chj9yJyShF1N1hUtdTqjFxyJ8qiUkl8rwKPmax4Jx++5vEM3 Q+gIL9mBQnv/Ct/KBHRyjyvfMYcgk+NFt/EuhNSA6+iHYCan2fOs55mVSjhuKbNl pKpF3orF0VX1UdzSy+Y7A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfeelgdehlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeen ucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeefgeefieeutdfggfetgefg heekjeehteeileeigfetieekjedvieeviefgheevtdenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprh gtphhtthhopehjvghthhhishhhjeejjeesghhmrghilhdrtghomhdprhgtphhtthhopegu rghvihgurdhgrdhjohhhnhhsthhonhesghhmrghilhdrtghomhdprhgtphhtthhopehpgh hsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 22 Nov 2024 11:02:55 -0500 (EST) Message-ID: <3aa689a8-316a-4f39-8755-4e0b5d98e955@aklaver.com> Date: Fri, 22 Nov 2024 08:02:54 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: PostgreSQL Log Info To: Jethish Jethish , "David G. Johnston" Cc: pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/21/24 23:32, 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 What if the query returns 500,000 rows? What is the purpose of retaining this information? > > > On Fri, Nov 22, 2024, 10:49 AM David G. Johnston > > wrote: > > On Thursday, November 21, 2024, Jethish Jethish > > wrote: > > Is it possible to log the rows returned by a query in the > PostgreSQL logs? > > > As a practical matter, no.  That said, given one can get row > contents into the server log in various ways, what is the use case > for why this capability is thought to be needed? > > David J. > -- Adrian Klaver adrian.klaver@aklaver.com