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 1slr7g-001ZPd-2U for pgsql-general@arkaria.postgresql.org; Wed, 04 Sep 2024 14:36:40 +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 1slr7e-00AhfD-Lt for pgsql-general@arkaria.postgresql.org; Wed, 04 Sep 2024 14:36:39 +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 1slr7d-00Aheh-Oj for pgsql-general@lists.postgresql.org; Wed, 04 Sep 2024 14:36:38 +0000 Received: from fout5-smtp.messagingengine.com ([103.168.172.148]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1slr7b-0008LO-Dg for pgsql-general@lists.postgresql.org; Wed, 04 Sep 2024 14:36:37 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 61A821380238; Wed, 4 Sep 2024 10:36:33 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Wed, 04 Sep 2024 10:36:33 -0400 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=1725460593; x=1725546993; bh=JrdtfWBXd0hREYuA1CvjKD8oD2+16ywNrueWfYMOMfM=; b= O/vhDHDCRDdYcYnzUe3tuO1O/TRtClrUcWXEb7FHkrlkldYZ/LRIG3CCMfo5GcC2 dRDe51xWRzITVLX2tbjDORoPfeVtoqNSXimWYOPY0eXmG7MtbNJ5KR3KYB+R8n2u Wu4Yo6QZK7C9wcsAIFTgfleoB7UR6TbW5Vsr6nShp1zhcp0V8442Jo6QyJBDLRgV w4ybngy9bXqYJm58aEm4A1z3xMUN2HRFrbrQglNbmqnMnmHoZHVN5NsLbRlfrlYe XZV343eLlcVzv+is3I5d66v+W1eBRiS7NAeMz9bN4zq0S12nkFbGSUrlO3yclEEr PoZYPqn7+m2uo09HXYpGkw== 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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1725460593; x= 1725546993; bh=JrdtfWBXd0hREYuA1CvjKD8oD2+16ywNrueWfYMOMfM=; b=U x8F5uGUieesrYDGh/tgf1TySe0aoESuhqcgwHS05LUOTPXJFxDfDwBB11iVGhoNJ 8Df2t2SkwL6h1hyWm0F0UvxGZx/+rImW9GPsbCuWkEBOKsG8uYQyrCG3I8mt0u7+ VOVxhxv/JREBqPlZf4tjGaAspaSJHMQjovCa8B2ZB0RZbFE0X8btnR+UuHRWD3uW iIjwDRTcU5aRYaCYco80CT5PBQSUXRHTuiTi5gbEn0DwBS0+VvRxQX8NVy+YxDPj zQsnfM8l4MLLb5jI+VIobKNhGKQh9JCRT44GDpMPBgVU3ualdaC5TI5LsJwP27FW 2lQ/DOLeDez6cVzAU6rkw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudehjedgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhephfeviefhveelffeftdeh udekveefhfeftdegieefveetfffgfeehtdfftedutedtnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghk lhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpd hrtghpthhtohepuhhsmhgrnhdrkhessghithhnihhnvgdrnhgvthdprhgtphhtthhopehl vggrrhhnvghruggrthgrsggrshgvleelsehgmhgrihhlrdgtohhmpdhrtghpthhtohepph hgshhqlhdqghgvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 4 Sep 2024 10:36:32 -0400 (EDT) Message-ID: Date: Wed, 4 Sep 2024 07:36:31 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: question on audit columns To: Khan Muhammad Usman , yudhi s Cc: pgsql-general 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 9/4/24 06:17, Khan Muhammad Usman wrote: > Yes this would be the better approach. 1) Except the overhead is now shifted to the application, which may or not be better. You are also moving the audit responsibility to the application and the application maintainers and making it application specific. If a new application/client starts hitting the database and it did not get the memo about the audit fields they won't be filled in. 2) I would recommend setting up a some realistic tests and see if the overhead of the update triggers would be a concern. -- Adrian Klaver adrian.klaver@aklaver.com