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 1tEWak-007vjE-IA for pgsql-general@arkaria.postgresql.org; Fri, 22 Nov 2024 16:33:10 +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 1tEWai-00AIwI-HG for pgsql-general@arkaria.postgresql.org; Fri, 22 Nov 2024 16:33:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tEWai-00AIwA-5G for pgsql-general@lists.postgresql.org; Fri, 22 Nov 2024 16:33:08 +0000 Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tEWab-003JFD-FF for pgsql-general@lists.postgresql.org; Fri, 22 Nov 2024 16:33:07 +0000 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 922CC2540148; Fri, 22 Nov 2024 11:32:58 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Fri, 22 Nov 2024 11:32:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= 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=1732293178; x=1732379578; bh=ondsS8sTCWwxTvbHpIxzHWCwqCJ9AZWpXeMa33h0vUU=; b= QrAKr5ZLLDDaYiaxJNL+8WKgaWA7I9gl1aesTOz2CPCX2t/wJLfyRgEMfQ+txqCh VLet5bEieCzPLIWYw+BBMHBVZmIh6eSH9zpX4+CPACOnOBIooCyh9xAVuQ55WurC 1I5AkBqT1jdBCyo6lvPdS7TkXuZn4LytF/utIXsB+vvYpzEDFi0ynTsxzV44b4Sp 6hO9Hcmd7o3AYrqzPayGMfueD/5oYY4LKaRsuHjlDGN+ho7hbAlqvHVrYk+uwL5P 11ToqwPYKu2qzxk+6YCj8pT2AD4gMlr3ygPSOOVO9HIuTFYbcD5EHfbwZet90cnL gZki7u6S4Ntsc1Qe43q9VA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=1732293178; x=1732379578; bh=o ndsS8sTCWwxTvbHpIxzHWCwqCJ9AZWpXeMa33h0vUU=; b=QcfXI/HGNIeyjxhhM QCnsmy6b1TA/+j/61fXjpQznB176exYUeSOqJQaLun1fZrMnEAXjWoSLL5+HWFj3 1s21bL+AUF2wj4YH5pAE1BAJM+bhCe2d92CTAdGFT6pWESn5hSbbiZY4eDObCMc9 2zBQcFKuDNAo6z/PyfnbooAqomM1ry8GBQAMx07aK+uyjvbaszGo31XAhPByjK/8 qC2EjPtw5eaIYtJvHJ9pSp9BD6oyN0lXCT13gbbMz2w9+lvRGe9I5S1qzhbHplFd n+rC9HEkD+BejIBWjklj992GZCDMaCf3cAUPQsx+qP8TYwThwnO6XfUd8SnL6ga6 dAcWA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfeelgdeihecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecu hfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrg hklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepveejhfeuheejfeehfedvvdek udehteelgfdugedvtdevhfefkeelhffhtdefheevnecuffhomhgrihhnpehgihhthhhusg drtghomhdprhgvrggumhgvrdhmugenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehj vghthhhishhhjeejjeesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvg hnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 22 Nov 2024 11:32:57 -0500 (EST) Message-ID: <27d9f8b9-f386-4ce9-8f73-5bbd6cda6b0c@aklaver.com> Date: Fri, 22 Nov 2024 08:32:57 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: PostgreSQL Log Info To: Jethish Jethish , 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: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/21/24 21:02, Jethish Jethish wrote: > Hi Everyone, > > Is it possible to log the rows returned by a query in the PostgreSQL logs? https://github.com/pgaudit/pgaudit/blob/main/README.md "pgaudit.log_rows Specifies that audit logging should include the number of rows retrieved or affected by a statement. When enabled the rows field will be included after the parameter field. The default is off." -- Adrian Klaver adrian.klaver@aklaver.com